<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/RotateGesture3D/constrainedAxis",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15RotateGesture3DV15constrainedAxisSo16SPRotationAxis3DaSgvp"
  },
  "title" : "constrainedAxis"
}
-->

# constrainedAxis

An axis around which the rotation is constrained.

```
var constrainedAxis: RotationAxis3D?
```

## Discussion

If the axis is `nil`, the rotation is unconstrained.

---

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)