---
title: "updateUIGestureRecognizer(_:context:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/uigesturerecognizerrepresentable/updateuigesturerecognizer(_:context:)"
---

# updateUIGestureRecognizer(_:context:)

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

## Declaration

```swift
@MainActor @preconcurrency func updateUIGestureRecognizer(_ recognizer: Self.UIGestureRecognizerType, 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.
