Latest 1.0.3
Homepage https://github.com/wrathchaos/ReachabilityLib
License MIT
Platforms ios 9.0
Dependencies NotificationBannerSwift, MaterialColor
Authors

ReachabilityLib


License


platform


Cocoapods


Downloads


Build


Issues


Swift 3.0


Pod Version

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

ReachabilityLib

## Requirements
– iOS 9.0+
– Xcode 8.1, 8.2, 8.3
– Swift 3.0, 3.1, 3.2

## Installation

ReachabilityLib is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

“`ruby
pod “ReachabilityLib”
“`

## Usage
“`ruby
import ReachabilityLib
“`

“`ruby
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)
}
“`

## Future Enhancements

– [x] Complete a working Example
– [ ] Add Carthage installation option
– [ ] Add Swift Package Manager installation option
– [ ] XCode 9 compatibility and tests
– [ ] Swift 4 compatibility and tests
– [ ] [ Add Quick Testing ](https://github.com/Quick/Quick)

## Author

FreakyCoder, [email protected]

## License

ReachabilityLib is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ReachabilityLib",
    "version": "1.0.3",
    "summary": "Simple and tiny internet network connection library with built-in alert system.",
    "description": "Simple and tiny internet network connection library. To check network connection and built-in alert system.",
    "homepage": "https://github.com/wrathchaos/ReachabilityLib",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "FreakyCoder": "[email protected]"
    },
    "source": {
        "git": "https://github.com/wrathchaos/ReachabilityLib.git",
        "tag": "1.0.3"
    },
    "social_media_url": "https://twitter.com/freakycodercom",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "ReachabilityLib/Classes/**/*",
    "dependencies": {
        "NotificationBannerSwift": [],
        "MaterialColor": []
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This