HorizontalProgressBar
A Horizontal progress bar for iOS written in Swift.
Sample Screen
https://github.com/Maheshbabu576/HorizontalProgressBar/blob/master/Screens/HorizontalProgressbar.mov
usage
Initialise
let progressBar = HorizontalProgressbar(frame: CGRect(x: 0, y: (self.navigationController?.navigationBar.frame.size.height)! - 3, width: (self.navigationController?.navigationBar.frame.size.width)!, height: 3) self.navigationController?.navigationBar.addSubview(progressBar)
To Start Animation
progressBar.startAnimating()
To Stop Animation
progressBar.stopAnimating()
Customization
progressBar.noOfChunks = 2 // You can provide number of Chunks/Strips appearing over the animation. By default it is 3
progressBar.kChunkWdith = 50 // Adjust the width of Chunks/Strips
progressBar.progressTintColor = UIColor.white // To chnage the Chunks color
progressBar.trackTintColor = UIColor.darkGray // To chnage background color of loading indicator
Installation
pod 'HorizontalProgressBar'
Author
MaheshBabu S, [email protected]
License
HorizontalProgressBar is available under the MIT license. See the LICENSE file for more info.