项目介绍:
HGCircularSlider
一款可以自定义的滑杆,可以做出iOS10闹钟的钟表效果。
https://github.com/HamzaGhazouani/HGCircularSlider
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
-
iOS 7.1+
-
Xcode 8.0
Installation
HGCircularSlider is available through CocoaPods. To install
it, simply add the following line to your Podfile:
# Swift 3.0 - Xcode 8
pod 'HGCircularSlider', '~> 1.0.0'
# Swift 2.2 - Xcode 7.3.1 (Checkout Swift2_Xcode7.3 branche)
pod 'HGCircularSlider', '~> 0.1.2'
Usage
-
Change the class of a view from UIView to CircularSlider, RangeCircularSlider or MidPointCircularSlider
-
Programmatically:
let circularSlider = CircularSlider(frame: myFrame)
OR
let circularSlider = RangeCircularSlider(frame: myFrame)
OR
let circularSlider = MidPointCircularSlider(frame: myFrame)
Documentation
Full documentation is available on CocoaDocs.<br/>
You can also install documentation locally using jazzy.
References
The UI examples of the demo project inspired from Dribbble.
Player
BasicExample
OClock
The project is Inspired from UICircularSlider
Author
Hamza Ghazouani, hamza.ghazouani@gmail.com