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

# mapAnnotations(_:)

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

## Declaration

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