<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSResponder/swipe(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSResponder(im)swipeWithEvent:"
  },
  "title" : "swipe(with:)"
}
-->

# swipe(with:)

Informs the receiver that the user has begun a swipe gesture.

```
func swipe(with event: NSEvent)
```

## Parameters

`event`

An event object representing the swipe gesture.

## Discussion

The event will be sent to the view under the touch in the key window.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)