---
title: "mapAnnotations(_:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/sequence/mapannotations(_:)-48olp"
---

# mapAnnotations(_:)

Returns an array containing the results of mapping the given async closure over the sequence’s annotations.

## Declaration

```swift
func mapAnnotations<Feature, Input, Output>(_ transform: (Input) async throws -> Output) async rethrows -> [AnnotatedFeature<Feature, Output>] where Self.Element == AnnotatedFeature<Feature, Input>
```
