ActivityNavigationItem
Indicate loading on UINavigationItem
Install / Use
/learn @kevin49999/ActivityNavigationItemREADME
ActivityNavigationItem
Description
- Useful for indicating activity with system "Save" or "Done"
UIBarButtonItem - Common in iOS UI/UX design when tapping a bar button saves or loads data
Installation
Swift Package Manager
In Xcode go to File -> Swift Packages -> Add Package Dependency and paste the url for this repo: https://github.com/longhorn499/ActivityNavigationItem
CocoaPods
Add ActivityNavigationItem to your Podfile:
pod 'ActivityNavigationItem'
and run pod install
Manual
Or you can manually add ActivityNavigationItem.swift from the Source folder
Usage
var activityNavigationItem = ActivityNavigationItem(navigationItem: controller.navigationItem)
activityNavigationItem.startAnimatingRight()
...
activityNavigationItem.stopAnimatingRight()
Requirements
Written in Swift 5.0, requires iOS 13.0 and above, Xcode 11.2 and above.
Credits
Created by Kevin Johnson 🤠
License
Available under the MIT license. See the LICENSE file for more info.
