GTNetMon is a lightweight Swift library that detects whether a device is connected to Internet, it identifies the connection type (wifi, cellular, and more), and monitors for changes in the network status.
Available through CocoaPods for fast and easy usage, just include in your Podfile the following:
1 2 3 |
pod ‘GTNetMon’ |
Find more on Github, including API details and usage examples.