---
title: "endGesture(with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsresponder/endgesture(with:)"
---

# endGesture(with:)

Informs the receiver that the user has ended a touch gesture.

## Declaration

```swift
func endGesture(with event: NSEvent)
```

## Parameters

- `event`: An event object representing the gesture end.

## Discussion

Discussion Note that this method is no longer called on apps that link against macOS 10.11 and later. If you need to access the phases of a specific gesture, you can implement the responder for that gesture and examine its phase property instead.

## See Also

### Touch and Gesture Events

- [beginGesture(with:)](appkit/nsresponder/begingesture(with:).md)
- [magnify(with:)](appkit/nsresponder/magnify(with:).md)
- [rotate(with:)](appkit/nsresponder/rotate(with:).md)
- [swipe(with:)](appkit/nsresponder/swipe(with:).md)
- [touchesBegan(with:)](appkit/nsresponder/touchesbegan(with:).md)
- [touchesMoved(with:)](appkit/nsresponder/touchesmoved(with:).md)
- [touchesCancelled(with:)](appkit/nsresponder/touchescancelled(with:).md)
- [touchesEnded(with:)](appkit/nsresponder/touchesended(with:).md)
- [wantsForwardedScrollEvents(for:)](appkit/nsresponder/wantsforwardedscrollevents(for:).md)
- [smartMagnify(with:)](appkit/nsresponder/smartmagnify(with:).md)
- [wantsScrollEventsForSwipeTracking(on:)](appkit/nsresponder/wantsscrolleventsforswipetracking(on:).md)
- [NSEvent.GestureAxis](appkit/nsevent/gestureaxis.md)
