Contents

camera(framing:allowPitch:)

Creates a camera in the context of the map that frames the given map item.

Declaration

func camera(framing item: MKMapItem, allowPitch: Bool = true) -> MapCamera

Parameters

  • item:

    The Mkmapitem to frame.

  • allowPitch:

    A Boolean value that indicates whether you can pitch the camera to frame the content.

Return Value

Returns a MapCamera with the framing region and pitch you specified.

See Also

Creating a camera proxy