ScalePicker

@available(iOS 9.0, *)
@objcMembers
@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 { 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.

    Declaration

    Swift

    open var tickSize: CGSize { get set }
  • The dimensions of the main tick. That is the tick the marks the zero-value.

    Declaration

    Swift

    open var mainTickSize: CGSize { get set }
  • The spacing between ticks.

    Declaration

    Swift

    open var spaceBetweenTicks: CGFloat { get set }
  • The color of ticks.

    Declaration

    Swift

    open var tickColor: UIColor { get set }
  • The color of the value label.

    Declaration

    Swift

    open 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)