ManeuverRuleOptions
public struct ManeuverRuleOptions
Defines a set of configurations specific to a TrackingCameraBehavior.ManeuverRule.
When TrackingCameraBehavior.ManeuverRuleOptions.zoom is set, the zoom reacts to the maneuver using its own distance thresholds.
When TrackingCameraBehavior.ManeuverRuleOptions.tilt is set, the tilt reacts to the maneuver using its own distance thresholds.
Both may be active simultaneously for smooth combined transitions.
-
Zoom configuration for this rule;
TrackingCameraBehavior.ManeuverRuleConfiguration.valueis the target zoom value. Interpreted according to the configuredTrackingCameraBehavior.zoomMeasureKind. Defaults tonil, leaving zoom unaffected.Declaration
Swift
public var zoom: TrackingCameraBehavior.ManeuverRuleConfiguration? -
Tilt configuration for this rule;
TrackingCameraBehavior.ManeuverRuleConfiguration.valueis the tilt angle in degrees (valid range 0.0–90.0). Defaults tonil, leaving tilt unaffected.Declaration
Swift
public var tilt: TrackingCameraBehavior.ManeuverRuleConfiguration? -
Creates a new instance.
Declaration
Swift
public init(zoom: TrackingCameraBehavior.ManeuverRuleConfiguration? = nil, tilt: TrackingCameraBehavior.ManeuverRuleConfiguration? = nil)