Updated Reachability for iOS Apps in Objective-C, based on Apple's Reachability, along with some other network utilities
Apple appears to have stopped updating their Reachability code. It isn't marked up with nullability for use with Swift projects, it doesn't use ARC, and is generally inflexible. Nexum is a drop-in replacement for Apple's reachability that is still extremely similar and very simple, but designed for easy, drop-in use and more design flexibility. Not everyone wants to use NSNotification all the time :P
Nexum is compiled with the iOS 11.2 SDK, but support iOS 9.x+
Take a look at the Project Setup guide for detailed step by step instruction on setting up your project and building the documentation locally.
Basic usage is pretty simple:
- Create and retain a reference to an instance of an
NXNetwork
object, or use the shared instance for basic projects. - Observe changes in reachability using
NXNetworkDelegate
,NXNetworkReachabilityStatusChangedNotification
, or a block.
See the Designing for Reachability for a detailed primer on potential different implentations, and see Example - Basic Reachability for a quick start.
The full documentaion is available here, hosted on GitHub Pages, but is also included as an xcode docset.
Documentation with made with Jazzy by Realm, using the Jony Theme by Harshil Shah