---
title: "showAnnotations(_:animated:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkmapview/showannotations(_:animated:)"
---

# showAnnotations(_:animated:)

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

## Declaration

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

## Parameters

- `annotations`: The annotations that you want to be visible on the map.
- `animated`: Specify doc://com.apple.documentation/documentation/Swift/true if you want the map view to animate the region change, or doc://com.apple.documentation/documentation/Swift/false if you want the map to display the new region immediately without animations.

## Discussion

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

- [region](mapkit/mkmapview/region.md)
- [setRegion(_:animated:)](mapkit/mkmapview/setregion(_:animated:).md)
- [centerCoordinate](mapkit/mkmapview/centercoordinate.md)
- [setCenter(_:animated:)](mapkit/mkmapview/setcenter(_:animated:).md)
- [visibleMapRect](mapkit/mkmapview/visiblemaprect.md)
- [setVisibleMapRect(_:animated:)](mapkit/mkmapview/setvisiblemaprect(_:animated:).md)
- [setVisibleMapRect(_:edgePadding:animated:)](mapkit/mkmapview/setvisiblemaprect(_:edgepadding:animated:).md)
