3 Commits

Author SHA1 Message Date
Jalal Ouraigua 7fdd18f890 Merge remote-tracking branch 'refs/remotes/origin/master' 2018-12-22 05:51:50 +00:00
Jalal Ouraigua ea3ce73f51 Remove isNegative. No longer needed 2018-12-22 05:51:09 +00:00
Jalal Ouraigua 556f8a858c Update README.md 2018-12-22 05:08:48 +00:00
2 changed files with 10 additions and 20 deletions
-10
View File
@@ -261,11 +261,6 @@ open class CircularSlider: UIControl {
set { renderer.isClockwise = newValue }
}
@IBInspectable open var isNegative: Bool {
get { return renderer.isNegative }
set { renderer.isNegative = newValue }
}
@IBInspectable open var labelDecimalPlaces: Int = 0
// MARK: - Private Properties
@@ -362,11 +357,6 @@ class Renderer {
maxiDotView.isClockwise = isClockwise
}
}
fileprivate var isNegative: Bool = false {
didSet {
}
}
fileprivate var textFieldIsHidden: Bool = false
fileprivate var fontSizeMultiplier: CGFloat = 0.5
+10 -10
View File
@@ -69,8 +69,8 @@ The slider's `value` property is both { get set } and it is designed to work sim
```swift
/**
This value will be pinned to minimumValue/maximumValue
The default value of this property is 0.0.
This value will be pinned to minimumValue/maximumValue
The default value of this property is 0.0.
*/
@IBInspectable open var value: CGFloat // { get set }
@@ -79,15 +79,15 @@ The default value of this property is 0.0.
In order to get value change notifications, use the `Target-Action` pattern which is an inherent part of UIControl, like so:
``` swift
/**
Add target/action for particular event.
- parameter target: The object whose action method is called
- parameter action: A selector identifying the action method to be called
- parameter Event: The control-specific events for which the action method is called
So far I've only implemented the following:
Add target/action for particular event.
- parameter target: The object whose action method is called
- parameter action: A selector identifying the action method to be called
- parameter Event: The control-specific events for which the action method is called
So far I've only implemented the following:
UIControl.Event.valueChanged
UIControl.Event.editingDidBegin
UIControl.Event.editingDidEnd
UIControl.Event.valueChanged
UIControl.Event.editingDidBegin
UIControl.Event.editingDidEnd
*/
circularSlider.addTarget(target: Any?, action: Selector, for: UIControl.Event)