https://github.com/phucnm/roundcornerprogress
https://github.com/phucnm/roundcornerprogress
custom-view ibdesignable ios-swift progress-view
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phucnm/roundcornerprogress
- Owner: phucnm
- License: mit
- Created: 2016-11-29T09:49:06.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-12T03:38:18.000Z (about 9 years ago)
- Last Synced: 2025-10-20T13:59:11.720Z (4 months ago)
- Topics: custom-view, ibdesignable, ios-swift, progress-view
- Language: Swift
- Size: 690 KB
- Stars: 14
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RoundCornerProgress
[](https://travis-ci.org/phucnm/RoundCornerProgress)
[](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.