SConnection is a lib for checking internet connection on iOS with Swift 4
To run the example project, clone the repo, and run pod install
from the Example directory first.
SConnection is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SConnection"
//This method will return a Boolean
if(SConnection.isConnectedToNetwork()){
//do some code
}else{
//show an alert
}
Gabriel Lidenor
SConnection is available under the MIT license. See the LICENSE file for more info.