AKStepper

open class AKStepper: UIView

Incrementor view, normally used for MIDI presets, but could be useful elsehwere

  • Text / label to display

    Declaration

    Swift

    open var text = "Value"
  • Current value

    Declaration

    Swift

    open var value: MIDIByte
  • Function to call on change

    Declaration

    Swift

    open var callback: (MIDIByte) -> Void
  • Handle new touches

    Declaration

    Swift

    override open func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)
  • Initialize the stepper view

    Declaration

    Swift

    public init(text: String,
                    value: MIDIByte,
                    frame: CGRect = CGRect(x: 0, y: 0, width: 440, height: 60),
                    callback: @escaping (MIDIByte) -> Void)
  • Initialize within Interface Builder

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Draw the stepper

    Declaration

    Swift

    override open func draw(_ rect: CGRect)