It will provide an interface to rotation
##Usage
###InterfaceBuilder Please create Square View.
###Code
Width and Height, please be the same
let wheelslider = WheelSlider(frame: CGRectMake(0, 0, 100, 100))
self.view.addSubview(wheelslider)##Value notification When the slider is moved , it will notify the value.
###Delegate
protocol WheelSliderDelegate{
func updateSliderValue(value:Double,sender:WheelSlider) -> ()
}###CallBack
public var callback : ((Double) -> ())?##Variable
@IBInspectable public var speed:IntRotational speed. Since the smaller the value is fast note.
@IBInspectable public var backStrokeColor : UIColorThe color of the frame of the circle that becomes the background
@IBInspectable public var backFillColor : UIColorOf the circle that becomes the background color
@IBInspectable public var backWidth : CGFloatThe thickness of the frame of the circle that becomes the background
@IBInspectable public var knobStrokeColor : UIColorThe color of the knob
@IBInspectable public var knobWidth : CGFloatThe thickness of the knob
@IBInspectable public var knobLength : CGFloatThe length of the knob
public var knobLineCap = WSKnobLineCap.WSLineCapRound
public enum WSKnobLineCap{
case WSLineCapButt
case WSLineCapRound
case WSLineCapSquare
}Kind of knob line cap.
@IBInspectable public var maxVal:IntThe maximum number of counts This parameter is insect if 'isLimited' is false
@IBInspectable public var isLimited:BoolThis parameter will continue to grow forever If the value is false
@IBInspectable public var allowNegativeNumber:BoolThis parameter allows a negative number if true
@IBInspectable public var isValueText:BoolIt will display the character that represents the current parameters in the middle of the circle
@IBInspectable public var valueTextColor:UIColorColor of the text indicating the current numeric
@IBInspectable public var valueTextFontSize:CGFloatThe font size of a character indicating the current numeric
##Installation
- Copying file
- Using Submodule
##License WheelSlider is released under the MIT License, see LICENSE.
