TCProgressBar
TCProgressBar copied to clipboard
Simple and clean progress bar
TCProgressBar
Simple and clean progress bar.
Demo

Installation
Cocoapods
Install Cocoapods
$ gem install cocoapods
Add TCProgressBar in your Podfile.
use_frameworks!
pod 'TCProgressBar'
Install the pod
$ pod install
Manually
Copy TCProgressBar folder to your project. Enjoy.
Usage
Interface Builder
-
Drag a
UIViewto you view, and change its class toTCProgressBar
-
Click Attributes Inspector
and notice the new Progress Barsection on top

Changes the values as you want and notice TCProgressBar dynamically changes.
Code
- 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
TCProgressBarto the view
self.view.addSubview(progressBar)
That's it!
LICENSE
TCProgressBar is available under the MIT license. See the LICENSE file for details.