VMF_TapHoldButton
class VMF_TapHoldButton : UIControl
This allows single taps, or hold to repeat (like steppers).
-
This is how often we repeat, when long-pressing.
Declaration
Swift
@IBInspectable var repeatFrequencyInSeconds: TimeInterval
-
This is the image that is displayed in the button.
Declaration
Swift
@IBInspectable var displayImage: UIImage? { get set }
-
Called for a single tap
Declaration
Swift
@objc func tapGesture(_: UITapGestureRecognizer)
-
Called for a long-press. The action will be repeated at a regular interval.
Declaration
Swift
@objc func longPressGesture(_ inGesture: UILongPressGestureRecognizer)
Parameters
inGesture
The gesture recognizer instance.
-
Called when the views are laid out.
We use this to initialize the object.
Declaration
Swift
override func layoutSubviews()