Contents

setCamera(_:animated:)

Changes the camera to use for determining the map’s viewing parameters, and optionally animates the change.

Declaration

func setCamera(_ camera: MKMapCamera, animated: Bool)

Parameters

  • camera:

    The camera object containing the viewing angle information. This parameter can’t be nil.

  • animated:

    Specify True if you want the map view to animate the change in viewing angle, or False if you want the map to reflect the changes without animations.

See Also

Configuring the map display