水平进度条
使用 Swift 编写的 iOS 水平进度条。
示例屏幕
https://github.com/Maheshbabu576/HorizontalProgressBar/blob/master/Screens/HorizontalProgressbar.mov
使用
初始化
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)
开始动画
progressBar.startAnimating()
停止动画
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 chnage the Chunks color
progressBar.trackTintColor = UIColor.darkGray // To chnage background color of loading indicator
安装
pod 'HorizontalProgressBar'
作者
马赫什·巴布U,[email protected]
许可
HorizontalProgressBar遵循MIT许可。更多信息请参阅LICENSE文件。