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) -> MapCameraParameters
- 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.