https://github.com/peterprokop/connectionawarevc
UIViewController subclass which shows user notification if internet connection is lost
https://github.com/peterprokop/connectionawarevc
Last synced: 2 months ago
JSON representation
UIViewController subclass which shows user notification if internet connection is lost
- Host: GitHub
- URL: https://github.com/peterprokop/connectionawarevc
- Owner: peterprokop
- License: mit
- Created: 2015-09-12T17:31:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-11T17:39:16.000Z (over 9 years ago)
- Last Synced: 2024-03-15T04:06:55.752Z (about 1 year ago)
- Language: Swift
- Homepage:
- Size: 129 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ConnectionAwareVC
UIViewController subclass which shows user notification if internet connection is lost.
Like this:
## Installation
### Cocoapods
- Make sure that you use latest stable Cocoapods version: `pod --version`
- If not, update it: `sudo gem install cocoapods`
- `pod init` in you project root dir
- `nano Podfile`, add:```
pod 'ConnectionAwareVC'
use_frameworks!
```
- Save it: `ctrl-x`, `y`, `enter`
- `pod update`
- Open generated `.xcworkspace`
- Don't forget to import: `import ConnectionAwareVC`!## Requirements
- Swift 1.2
- iOS 7.0+ (8.0+ if you use Cocoapods)
- Xcode 6.3+
- This library is dependent on [ReachabilitySwift](https://github.com/ashleymills/Reachability.swift)## Usage
If you're using CocoaPods, import the library with `import ConnectionAwareVC`
Subclass your view controllers from ConnectionAwareVC.Also, check out [SwiftOverlays](https://github.com/peterprokop/SwiftOverlays/)