---
title: "updateNSGestureRecognizer(_:context:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/nsgesturerecognizerrepresentable/updatensgesturerecognizer(_:context:)"
---

# updateNSGestureRecognizer(_:context:)

Updates the NSGestureRecognizer (and coordinator) to the latest configuration.

## Declaration

```swift
@MainActor @preconcurrency func updateNSGestureRecognizer(_ recognizer: Self.NSGestureRecognizerType, context: Self.Context)
```

## Parameters

- `recognizer`: An instance of the represented gesture recognizer.
- `context`: A context structure containing information about the current state of the system, such as the current coordinator instance.
