SFProgressCircle
A circular gradient progress view implementation for iOS with efficient drawing using a series of arcs with linear gradient.
Features
- Perfect circular gradient.
-
Possibility to set both
startColor
andendColor
. -
Possibility to set both
startAngle
andendAngle
. -
Possibility to set
lineWidth
. -
Possibility to set
progress
with or without animation.
TODO
- Looped circular gradient.
- Rounded edges for progress line.
- Multiple colors for gradient.
Requirements
- iOS 8.0+
- Xcode 6.3+
Installation
Embedded frameworks require a minimum deployment target of iOS 8.
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
To integrate SFProgressCircle into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target '<Your Target Name>' do
pod 'SFProgressCircle'
end
Then, run the following command:
$ pod install
Contribution
Please feel free to ask questions, open issues and submit pull requests.
License
SFProgressCircle is available under the MIT license. See the LICENSE file for more info.