Sometimes simplicity attracts you. Color Fill Loading animation is between those Bar loading animations
Add Progress Animation in just 2 steps in your view
To integrate BarLoading into your Xcode project using CocoaPods, specify it in your Podfile
:
use_frameworks!
pod 'BarLoading'
Then, run the following command:
$ pod install
To integrate JProgressView
into your Xcode project using Carthage, specify it in your Cartfile
:
github "jwd-ali/BarLoading"
If you prefer not to use a dependency manager, you can integrate BarLoading into your project manually.
Add sources into your project:
BarLoading.swift
, Tracks.swift
and CALayer+Extension.swift
If you are using any dependency manager (pods , carthage , package manager)to integrate BarLoading. Import BarAimation first:
import BarAimation
And for Manuall install you dont need to import anything
You need to simply initiate progressView with four colours if you want to customise colors initiate like this
var progessView = BarLoading()
Then in which view you want to show progress call
progessView.StartAnimating(in: self.view)
To stop and hide call
progessView.stopAnimating()
For better understanding framework includes example project as well
Congratulations! You’re done.
I’d love to have help on this project. For small changes please open a pull request, for larger changes please open an issue first to discuss what you’d like to see.