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
rawValue
Represents an
Int
value that will map to a specific gesture type.rawValue
s are mapped to gesture types as follows:
-
Represents a type alias for an
Int
type.Declaration
Swift
public typealias RawValue = Int
-
Represents a pan gesture with a
rawValue
of 1.Declaration
Swift
public static let pan: GestureType
-
Represents a pinch gesture with a
rawValue
of 2.Declaration
Swift
public static let pinch: GestureType
-
Represents a rotate gesture with a
rawValue
of 4.Declaration
Swift
public static let rotate: GestureType
-
Represents a tilt gesture with a
rawValue
of 8.Declaration
Swift
public static let tilt: GestureType
-
Represents a longPress gesture with a
rawValue
of 16.Declaration
Swift
public static let longPress: GestureType
-
Represents a tap gesture with a
rawValue
of 32.Declaration
Swift
public static let tap: GestureType
-
Represents an
Int
value that will map to a specific gesture type.Declaration
Swift
public var rawValue: Int
-
Adds the given
rawValue
to this hasher, mixing its essential parts into the hasher state.Declaration
Swift
public func hash(into hasher: inout Hasher)