TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Aug 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Kuray OGUN.
Depends on: | |
NotificationBannerSwift | >= 0 |
MaterialColor | >= 0 |
To run the example project, clone the repo, and run pod install
from the Example directory first.
ReachabilityLib is available through CocoaPods. To install it, simply add the following line to your 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 is available under the MIT license. See the LICENSE file for more info.