测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布最新版本 | 2017年8月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
由 Kuray OGUN 维护。
依赖项 | |
NotificationBannerSwift | >= 0 |
MaterialColor | >= 0 |
要运行示例项目,请克隆存储库,然后首先从 Example 目录运行 pod install
。
ReachabilityLib 可通过 CocoaPods 获得。要安装它,只需将以下行添加到您的 Podfile 中
pod "ReachabilityLib"
import ReachabilityLib
if !reachability.isInternetAvailable(){
print("No internet connection")
// Notification Banner comes from top and alert the user (Optional)
reachability.showNetworkAlert(title: "Internet Connection is not available", subtitle: "Please check your internet connection and try again.", autoDismiss: false)
} else {
print("Yay! Internet Connection")
// Notification Banner comes from top and alert the user (Optional)
reachability.showBanner(title: "Perfect Network Connection!", subtitle: "Yay! We have a nice & smooth network connection", style: .success, autoDismiss: true)
}
FreakyCoder, [email protected]
ReachabilityLib 根据MIT许可证可用。有关更多信息,请参阅 LICENSE 文件。