gesture(_:)
Attaches an Nsgesturerecognizerrepresentable to the view.
Declaration
nonisolated func gesture(_ representable: some NSGestureRecognizerRepresentable) -> some View
Parameters
- representable:
The Nsgesturerecognizerrepresentable that creates and manages a gesture recognizer.
Return Value
A view with an NSGestureRecognizerRepresentable attached.