ScalePicker
@objc(PESDKScalePicker) open class ScalePicker: UIView
A ScalePicker
provides an UI element to pick values.
-
The current value of the scale picker.
Declaration
Swift
open var currentValue = CGFloat(0)
-
The smallest pickable value.
Declaration
Swift
open var minValue = Int(-45)
-
The biggest pickable value.
Declaration
Swift
open var maxValue = Int(45)
-
The dimensions of a tick.
Declaration
Swift
open var tickSize = CGSize(width: 2.0, height: 2.0)
-
The dimensions of the main tick. That is the tick the marks the zero-value.
Declaration
Swift
open var mainTickSize = CGSize(width: 2.0, height: 6.0)
-
The spacing between ticks.
Declaration
Swift
open var spaceBetweenTicks = CGFloat(10)
-
The color of ticks.
Declaration
Swift
open var tickColor = UIColor.white
-
The color of the value label.
Declaration
Swift
open var textColor = UIColor.white
-
The color of a view that lies behind the value label. That should be the background with an alpha value. This view is used to improve the readability of the value label.
Declaration
Swift
open var valueLabelBackgroundColor = UIColor(white: 0.0, alpha: 0.7)
-
A delegate that informs the receiver about changes of the value.
Declaration
Swift
open weak var delegate: ScalePickerDelegate?
-
This method will move the scale to the given value.
Declaration
Swift
open func scroll(toValue value: CGFloat)