<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/RotateGesture3D/init(constrainedToAxis:minimumAngleDelta:inputKinds:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15RotateGesture3DV17constrainedToAxis17minimumAngleDelta10inputKindsACSo16SPRotationAxis3DaSg_AA0I0VAA012GestureInputL0Vtcfc"
  },
  "title" : "init(constrainedToAxis:minimumAngleDelta:inputKinds:)"
}
-->

# init(constrainedToAxis:minimumAngleDelta:inputKinds:)

Creates a rotation gesture with a minimum delta for the gesture to
start, an axis to constrain measurement of rotation, and the input
kinds the gesture should recognize.

```
nonisolated init(constrainedToAxis: RotationAxis3D? = nil, minimumAngleDelta: Angle = .degrees(1), inputKinds: GestureInputKinds = .all)
```

## Parameters

`constrainedToAxis`

The 3D axis about which rotation is measured.

`minimumAngleDelta`

The minimum delta required before the gesture
starts. The default value is a one-degree angle.

`inputKinds`

A set of input kinds that this gesture recognizes.
If not specified, the gesture will recognize all applicable input
kinds that a person can use to perform it.

## Discussion

If the constrained axis is `nil`, the gesture measures unconstrained
3D rotation.

---

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)