Contents

showAnnotations(_:animated:)

Sets the visible region so that the map displays the specified annotations.

Declaration

func showAnnotations(_ annotations: [any MKAnnotation], animated: Bool)

Parameters

  • annotations:

    The annotations that you want to be visible on the map.

  • animated:

    Specify True if you want the map view to animate the region change, or False if you want the map to display the new region immediately without animations.

Discussion

Calling this method updates the value in the region property, and potentially other properties, to reflect the new map region.

See Also

Manipulating the visible portion of the map