Contents

item(_:allowsAutomaticPitch:)

Creates a new camera position centered on a map item and automatic pitch selection you provide.

Declaration

static func item(_ item: MKMapItem, allowsAutomaticPitch: Bool = true) -> MapCameraPosition

Parameters

  • item:

    The Mkmapitem to center the map on.

  • allowsAutomaticPitch:

    A Boolean value that indicates whether the camera selects a pitch automatically.

Return Value

Returns a new MapCameraPosition.

See Also

Creating a camera position