Skip to content

kevin49999/ActivityNavigationItem

Repository files navigation

ActivityNavigationItem

Platform iOS CocoaPods compatible MIT license

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

In Xcode go to File -> Swift Packages -> Add Package Dependency and paste the url for this repo: https://github.com/longhorn499/ActivityNavigationItem

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.