FollowPuckViewportStateOptions
public struct FollowPuckViewportStateOptions : Codable, 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
CameraOptionswhen setting the camera. Ifnil, padding will not be modified.Declaration
Swift
public var padding: UIEdgeInsets? { get set } -
The value to use for
CameraOptionswhen setting the camera. Ifnil, zoom will not be modified.Declaration
Swift
public var zoom: CGFloat? -
Indicates how to obtain the value to use for
CameraOptionswhen setting the camera. Ifnil, bearing will not be modified.Declaration
Swift
public var bearing: FollowPuckViewportStateBearing? -
The value to use for
CameraOptionswhen 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.
FollowPuckViewportStateOptions Structure Reference