OverviewViewportStateOptions

@_spi(Experimental)
public struct OverviewViewportStateOptions : Equatable

Configuration options for OverviewViewportState.

  • The geometry that the OverviewViewportState should use when calculating its camera.

    Declaration

    Swift

    public var geometry: Geometry
  • The padding that OverviewViewportState should use when calculating its camera.

    Declaration

    Swift

    public var padding: UIEdgeInsets
  • The bearing that OverviewViewportState should use when calcualting its camera.

    Declaration

    Swift

    public var bearing: CLLocationDirection?
  • The pitch that OverviewViewportState should use when calculating its camera.

    Declaration

    Swift

    public var pitch: CGFloat?
  • The length of the animation performed by OverviewViewportState when it starts updating the camera and any time options is set. See options for details.

    Declaration

    Swift

    public var animationDuration: TimeInterval
  • Memberwise initializer for OverviewViewportStateOptions.

    geometry is required, but all other parameters have default values.

    Declaration

    Swift

    public init(geometry: GeometryConvertible,
                padding: UIEdgeInsets = .zero,
                bearing: CLLocationDirection? = 0,
                pitch: CGFloat? = 0,
                animationDuration: TimeInterval = 1)

    Parameters

    geometry

    the geometry for which an overview should be shown.

    padding

    Defaults to UIEdgeInsets.zero.

    bearing

    Defaults to 0.

    pitch

    Defaults to 0.

    animationDuration

    Defaults to 1.