---
title: "touchesEnded(with:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/nshostingview/touchesended(with:)"
---

# touchesEnded(with:)

## Declaration

```swift
@MainActor @preconcurrency override dynamic func touchesEnded(with nsEvent: NSEvent)
```

## See Also

### Responding to touch events

- [touchesBegan(with:)](swiftui/nshostingview/touchesbegan(with:).md)
- [touchesCancelled(with:)](swiftui/nshostingview/touchescancelled(with:).md)
- [touchesMoved(with:)](swiftui/nshostingview/touchesmoved(with:).md)
