---
title: "map(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/gesture/map(_:)"
---

# map(_:)

Returns a gesture that uses the given closure to map over this gesture’s value.

## Declaration

```swift
nonisolated func map<T>(_ body: @escaping (Self.Value) -> T) -> _MapGesture<Self, T>
```
