<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSEvent/SwipeTrackingOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSEventSwipeTrackingOptions"
  },
  "title" : "NSEvent.SwipeTrackingOptions"
}
-->

# NSEvent.SwipeTrackingOptions

Constants that specify swipe-tracking options.

```
struct SwipeTrackingOptions
```

## Topics

### Constants

[`NSEventSwipeTrackingLockDirection`](/documentation/AppKit/NSEvent/SwipeTrackingOptions/lockDirection)

Clamp gestureAmount to 0 if the user starts to swipe in the opposite direction than they started.

[`NSEventSwipeTrackingClampGestureAmount`](/documentation/AppKit/NSEvent/SwipeTrackingOptions/clampGestureAmount)

Don’t allow gestureAmount to go beyond +/-1.0

### Initializers

[`init(rawValue:)`](/documentation/AppKit/NSEvent/SwipeTrackingOptions/init(rawValue:))

## Relationships

### Conforms To

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`OptionSet`](/documentation/Swift/OptionSet)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`Equatable`](/documentation/Swift/Equatable)

---

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)