MultitouchGestureRecognizer

open class MultitouchGestureRecognizer: UIGestureRecognizer

UIGestureRecognizer subclass which tracks the state of individual touches.

  • Denotes the way the list of touches is managed.

    See more

    Declaration

    Swift

    public enum Mode
  • The touch management mode.

    Declaration

    Swift

    public var mode: Mode = .stack
  • The maximum number of touches allowed in the stack/queue. Defaults to 0, signifying unlimited touches. If count is decreased past the current number of touches, any excess touches will be ended immediately.

    Declaration

    Swift

    public var count: Int = 0
  • If sustain is set to true, when touches end they will be retained in touches until such time as all touches have ended and a new touch begins. If sustain is switched from true to false, any currently sustained touches will be ended immediately.

    Declaration

    Swift

    public var sustain: Bool = true
  • The currently tracked collection of touches. May contain touches after they have ended, if sustain is set to true.

    Declaration

    Swift

    public lazy private(set) var touches = [UITouch]()
  • The current gesture recognizer state, as it pertains to the sustain setting.

    See more

    Declaration

    Swift

    public enum State
  • The current multitouch gesture recognizer state.

    Declaration

    Swift

    public var multitouchState: State
  • Undocumented

    Declaration

    Swift

    open class MultitouchGestureRecognizer: UIGestureRecognizer
  • Undocumented

    Declaration

    Swift

    open class MultitouchGestureRecognizer: UIGestureRecognizer
  • Undocumented

    Declaration

    Swift

    open class MultitouchGestureRecognizer: UIGestureRecognizer
  • Undocumented

    Declaration

    Swift

    open class MultitouchGestureRecognizer: UIGestureRecognizer
  • The average of all touch locations in the current view.

    Declaration

    Swift

    public var centroid: CGPoint?
  • The average of all previous touch locations in the current view.

    Declaration

    Swift

    public var previousCentroid: CGPoint?