Simple and clean progress bar.
Install Cocoapods
$ gem install cocoapods
Add TCProgressBar
in your Podfile
.
use_frameworks!
pod 'TCProgressBar'
Install the pod
$ pod install
Copy TCProgressBar
folder to your project. Enjoy.
-
Drag a
UIView
to you view, and change its class toTCProgressBar
-
Click Attributes Inspector and notice the new
Progress Bar
section on top
Changes the values as you want and notice TCProgressBar
dynamically changes.
- Create a new
TCProgressBar
let progressBar = TCProgressBar(frame: CGRect(x: 0,
y: 0,
width: 200,
height: 20))
- Set the values as you like
progressBar.outlineColor = .black
progressBar.outlineWidth = 2
progressBar.spacing = 4
progressBar.progressColor = .darkGray
progressBar.backgroundColor = .lightGray
progressBar.value = 0.7
- Add
TCProgressBar
to the view
self.view.addSubview(progressBar)
That's it!
TCProgressBar is available under the MIT license. See the LICENSE file for details.