ScalePicker
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKScalePicker)
open class ScalePicker : UIView
extension ScalePicker: UIScrollViewDelegate
A ScalePicker
provides an UI element to pick values.
-
The current value of the scale picker.
Declaration
Swift
open var currentValue: CGFloat { get set }
-
The smallest pickable value.
Declaration
Swift
open var minValue: Int { get set }
-
The biggest pickable value.
Declaration
Swift
open var maxValue: Int { get set }
-
The dimensions of a tick. This property supports being set via a
UIAppearance
proxy.Declaration
Swift
open dynamic var tickSize: CGSize { get set }
-
The dimensions of the main tick. That is the tick the marks the zero-value. This property supports being set via a
UIAppearance
proxy.Declaration
Swift
open dynamic var mainTickSize: CGSize { get set }
-
The spacing between the ticks. This property supports being set via a
UIAppearance
proxy.Declaration
Swift
open dynamic var spaceBetweenTicks: CGFloat { get set }
-
The color of the ticks. This property supports being set via a
UIAppearance
proxy.Declaration
Swift
open dynamic var tickColor: UIColor { get set }
-
The color of the value label. This property supports being set via a
UIAppearance
proxy.Declaration
Swift
open dynamic var textColor: UIColor { get set }
-
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 { get set }
-
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)