<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: 27.3.0 -",
    "macOS: 27.3.0 -",
    "visionOS: 27.3.0 -",
    "watchOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ScrollGestureAxisLock/automatic",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI21ScrollGestureAxisLockV9automaticACvpZ"
  },
  "title" : "automatic"
}
-->

# automatic

Uses the platform’s default behavior for locking scroll gestures.

```
static var automatic: ScrollGestureAxisLock { get }
```

## Discussion

On macOS, scroll gestures lock to their predominant axis by default.
On iOS, iPadOS, Mac Catalyst, visionOS, and watchOS, scroll gestures
move along both axes at once.

---

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)