An open API service indexing awesome lists of open source software.

https://github.com/phucnm/roundcornerprogress


https://github.com/phucnm/roundcornerprogress

custom-view ibdesignable ios-swift progress-view

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# RoundCornerProgress
[![Build Status](https://travis-ci.org/phucnm/RoundCornerProgress.svg?branch=master)](https://travis-ci.org/phucnm/RoundCornerProgress)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
## Install
**CocoaPods**

Add ```pod 'RoundCornerProgress'``` to your Podfile then ```pod install```

**Carthage**

Add ```github "phucnm/RoundCornerProgress"``` to your Cartfile then ```carthage update```

## Usage
**Using Storyboard / Interface Builder**
* Drag a UIView to Storyboard or Interface Builder, change its class to **RoundCornerProgress**
* Customize your progress color in **Attributes inspector** tab

**Manually**
* Import custom control by `import RoundCornerProgress`
* Declare your property `var progressView: RoundCornerProgressView!`
* Initialize your progress view and customize it
```swift
self.progressView = RoundCornerProgressView(frame: CGRect(x: 20, y: 20, width: 200, height: 20))
self.progressView.trackTintColor = UIColor.blue
self.progressView.progressTintColor = UIColor.cyan
self.progressView.trackRoundCorners = [.topRight, .bottomLeft]
self.progressView.progressRoundCorners = [.bottomRight]
view.addSubview(self.progressView)
```

## Authors

[Phuc Nguyen](https://github.com/phucnm)

## License

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