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

# touchesMoved(with:)

Informs the receiver that one or more touches has moved.

## Declaration

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

## Parameters

- `event`: An event object representing a touch movement.

## Discussion

Discussion The system sends the to the view under the touch in the key window. To get the set of touches that moved for this view (or descendants of this view) call touches(matching:in:) on event and pass moved for the phase.

## See Also

### Touch and Gesture Events

- [beginGesture(with:)](appkit/nsresponder/begingesture(with:).md)
- [endGesture(with:)](appkit/nsresponder/endgesture(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)
- [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)
