Latest 0.7.0
Homepage https://github.com/yashthaker7/TYProgressBar
License MIT
Platforms ios 11.0
Authors

Version
License
Platform

Custom animating gradient progress bar.

gif

Installation

TYProgressBar is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'TYProgressBar'

How to use

let progressBar = TYProgressBar()

func setupProgressBar() {
progressBar.frame = CGRect(x: 0, y: 0, width: 220, height: 220)
progressBar.center = self.view.center
self.view.addSubview(progressBar)
}

Customize

You can change gradient color and label font and text color

progressBar.gradients = [UIColor.red, UIColor.yellow]
progressBar.textColor = .orange
progressBar.font = UIFont(name: "HelveticaNeue-Medium", size: 22)!
progressBar.lineDashPattern = [10, 4]   // lineWidth, lineGap
progressBar.lineHeight = 5

Show progress

progressBar.progress = 0.5    // between 0 to 1

ss1 ss2 ss3

Author

Yash Thaker, [email protected]

License

TYProgressBar is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "TYProgressBar",
    "version": "0.7.0",
    "summary": "Custom animating gradient progress bar.",
    "homepage": "https://github.com/yashthaker7/TYProgressBar",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Yash Thaker": "[email protected]"
    },
    "source": {
        "git": "https://github.com/yashthaker7/TYProgressBar.git",
        "tag": "0.7.0"
    },
    "social_media_url": "https://twitter.com/yashthaker7",
    "platforms": {
        "ios": "11.0"
    },
    "source_files": "TYProgressBar/Classes/**/*"
}

Pin It on Pinterest

Share This