A Horizontal progress bar for iOS written in Swift.
Initialization
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()
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 change the Chunks color
progressBar.trackTintColor = UIColor.darkGray // To change background color of loading indicator
progressBar.loadingStyle = .indetermine // Choose loading styles from determine , indetermine , fill
pod 'HorizontalProgressBar'
MaheshBabu S, maheshbabu.576@outlook.com
HorizontalProgressBar is available under the MIT license. See the LICENSE file for more info.