Simple UIApplication's NetworkActivityIndicator counter. Use
addActivity method before request for increase counter and show application network activity indicator, after finished request decrease counter by method
removeActivity. If counter reach 0 network activity indicator will be hidden.
Swift Package Manager (required Xcode 11)
- Select File > Swift Packages > Add Package Dependency. Enter
https://github.com/alphatroya/NetworkActivityIndicatorManagerin the "Choose Package Repository" dialog.
- In the next page, specify the version resolving rule as "Up to Next Major" with "2.0" as its earliest version.
- After Xcode checking out the source and resolving the version, you can choose the "NetworkActivityIndicatorManager" library and add it to your app target.
Alexey Korolev, email@example.com
NetworkActivityIndicatorManager is available under the MIT license. See the LICENSE file for more info.
You may find interesting
Add SPM support - 2020-09-15 09:29:40
SPM is the only way now to add this library to your project. I drop Carthage and Cocoapods support.