FollowPuckViewportStateOptions
public struct FollowPuckViewportStateOptions : Hashable
Configuration options for FollowPuckViewportState.
Each of the CameraOptions-related properties is optional, so that the state can be configured to
only modify certain aspects of the camera if desired. This can be used, to achieve effects like allowing
zoom gestures to work simultaneously with FollowPuckViewportState.
See also
transitionsToIdleUponUserInteraction
-
The value to use for
paddingwhen setting the camera. Ifnil, padding will not be modified.Declaration
Swift
public var padding: UIEdgeInsets? -
The value to use for
zoomwhen setting the camera. Ifnil, zoom will not be modified.Declaration
Swift
public var zoom: CGFloat? -
Indicates how to obtain the value to use for
bearingwhen setting the camera. Ifnil, bearing will not be modified.Declaration
Swift
public var bearing: FollowPuckViewportStateBearing? -
The value to use for
pitchwhen setting the camera. Ifnil, pitch will not be modified.Declaration
Swift
public var pitch: CGFloat? -
Memberwise initializer for
FollowPuckViewportStateOptions.All parameters have default values.
Declaration
Swift
public init(padding: UIEdgeInsets? = .zero, zoom: CGFloat? = 16.35, bearing: FollowPuckViewportStateBearing? = .heading, pitch: CGFloat? = 45)Parameters
paddingDefaults to
UIEdgeInsets.zero.zoomDefaults to 16.35.
bearingDefaults to
heading.pitchDefaults to 45.
-
Combines all fields into
hasherDeclaration
Swift
public func hash(into hasher: inout Hasher)
FollowPuckViewportStateOptions Structure Reference