KYNavigationProgress
KYNavigationProgress is a progress bar that is shown in the UINavigationBar of a UINavigationController.
Features
- Easily customizable to match your app’s design.
- Supports both indeterminate and determinate progress modes.
- Smooth animation transitions.
- Simple integration with UINavigationController.
Requirements
To use KYNavigationProgress, you must meet the following requirements:
- iOS 8.0+
- Xcode 9.0+
Installation
To integrate KYNavigationProgress into your project, follow these steps:
- Install KYNavigationProgress using Cocoapods by adding the following line to your Podfile:
pod 'KYNavigationProgress'
- Run
pod install
to install the dependencies.
Usage
To use KYNavigationProgress in your app, follow these instructions:
- Import the KYNavigationProgress module:
import KYNavigationProgress
- Set the progressView as the navigationItem’s titleView:
navigationItem.titleView = progressView
- To show/hide the progress bar, use the following methods:
progressView.startProgress()
andprogressView.finishProgress()
- For determinate progress, update the progress value using:
progressView.setProgress(0.5, animated: true)
- To customize the appearance of the progress bar, modify the properties of the progressView object.
Examples
Here are some examples demonstrating the usage of KYNavigationProgress:
Show Determinate Progress
To show a determinate progress bar with animation:
progressView.setProgress(0.75, animated: true)
progressView.startProgress()
Show Indeterminate Progress
To show an indeterminate progress bar:
progressView.startProgress()
License
KYNavigationProgress is released under the MIT license. See the LICENSE file for more details.
Contact
If you have any questions or suggestions, feel free to contact me at [email protected]
Contributing
If you’d like to contribute to KYNavigationProgress, please follow these steps:
- Fork the repo on GitHub.
- Create a new branch.
- Make your changes and commit them.
- Push your changes to the forked repository.
- Create a pull request to the main repository.