CircularSlider

A powerful Circular Slider. It's written in Swift, it's 100% IBDesignable and all parameters are IBInspectable.

  • 所有者: taglia3/CircularSlider
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

CircularSlider

A powerful Circular Slider. It's written in Swift, it's 100% IBDesignable and all parameters are IBInspectable.

Demo

Slider demo

Installation

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

Swift 3:

pod 'CircularSlider'

Swift 2.2:

pod 'CircularSlider' ', '~> 0.2'

Usage

You can use this slider by declaring programmatically or by placing it in your Storyboard file.
All the paramters are IBInspectable, so you can configure the slider directly in the Storyboard file (in the attribute inspector tab) without write any line of code!

Delegate

Optionally you can conforms to the methods of the CircularSliderDelegate protocol.

If you want to admit only certain values you can implement this methods:

optional func circularSlider(circularSlider: CircularSlider, valueForValue value: Float) -> Float

With this method you override the actual slider value before the slider is updated.
Example: you want only rounded values:

func circularSlider(circularSlider: CircularSlider, valueForValue value: Float) -> Float {
return floorf(value)
}

The other methods you can implement are:

optional func circularSlider(circularSlider: CircularSlider, didBeginEditing textfield: UITextField)
optional func circularSlider(circularSlider: CircularSlider, didEndEditing textfield: UITextField)

Author

taglia3, matteo.tagliafico@gmail.com

LinkedIn, Matteo Tagliafico

License

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

主要指标

概览
名称与所有者taglia3/CircularSlider
主编程语言Swift
编程语言Swift (语言数: 4)
平台
许可证MIT License
所有者活动
创建于2016-09-17 17:28:41
推送于2019-05-22 12:51:55
最后一次提交2016-11-09 20:48:50
发布数6
最新版本名称1.1.2 (发布于 2016-11-09 20:49:04)
第一版名称0.1 (发布于 2016-09-22 22:21:34)
用户参与
星数258
关注者数7
派生数41
提交数11
已启用问题?
问题数13
打开的问题数11
拉请求数1
打开的拉请求数3
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?