I’ve mentioned a number of networking libraries, most recently the Swift based Alamofire and SwiftHTTP one functionality not included within these libraries is that they don’t automatically set the network status indicator.
Here’s an open source library that allows you to automatically set the network status indicator in the status bar called BigBrother from Marcelo Fabri.
BigBrother sets the network status indicator based on the app’s current NSURLSession or NSURLconnection state so it works straight out with most networking libraries.
If you would like to control the network status indicator directly helper methods included to control the status indicator by incrementing and decrementing a network status count which is nice if you have multiple connections or want to indicate some other sort of activity.
You can also supply a NSURLSessionConfiguration object if you’d prefer to work with a specific NSURLSession rather than any NSURLSession.
You can find BigBrother on Github here.
A library providing a nice automatic way of setting the network status indicator.
Original article: Open Source iOS Library For Automatically Setting The State Of The Network Status Indicator
©2015 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.