GestureType
public struct GestureType : OptionSet, Hashable
An OptionSet that defines available gestures for ExclusiveGestureManager.
-
Creates an instance of
GestureType.Declaration
Swift
public init(rawValue: Int)Parameters
rawValueRepresents an
Intvalue that will map to a specific gesture type.rawValues are mapped to gesture types as follows:
-
Represents a type alias for an
Inttype.Declaration
Swift
public typealias RawValue = Int -
Represents a pan gesture with a
rawValueof 1.Declaration
Swift
public static let pan: GestureType -
Represents a pinch gesture with a
rawValueof 2.Declaration
Swift
public static let pinch: GestureType -
Represents a rotate gesture with a
rawValueof 4.Declaration
Swift
public static let rotate: GestureType -
Represents a tilt gesture with a
rawValueof 8.Declaration
Swift
public static let tilt: GestureType -
Represents a longPress gesture with a
rawValueof 16.Declaration
Swift
public static let longPress: GestureType -
Represents a tap gesture with a
rawValueof 32.Declaration
Swift
public static let tap: GestureType -
Represents an
Intvalue that will map to a specific gesture type.Declaration
Swift
public var rawValue: Int -
Adds the given
rawValueto this hasher, mixing its essential parts into the hasher state.Declaration
Swift
public func hash(into hasher: inout Hasher)
TomTom SDK for iOS (0.53.1)
GestureType