<!--
{
  "availability" : [
    "Xcode: 16.3.0 -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "XCUIAutomation",
  "identifier" : "/documentation/XCUIAutomation/XCUIDevice/rotateDigitalCrown(delta:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "XCUIAutomation"
    ],
    "preciseIdentifier" : "c:objc(cs)XCUIDevice(im)rotateDigitalCrownByDelta:"
  },
  "title" : "rotateDigitalCrown(delta:)"
}
-->

# rotateDigitalCrown(delta:)

Simulates the user rotating the Digital Crown on an Apple Watch by the delta amount.

```
func rotateDigitalCrown(delta rotationalDelta: CGFloat)
```

## Parameters

`rotationalDelta`

A float value that indicates the fraction of a full rotation of the Digital Crown.

## Discussion

Provide a positive value for `rotationalDelta` to indicate scrolling upward or a negative value to indicate scrolling downward, regardless of the orientation of the watch. A `rotationalDelta` value of `1.0` indicates a full rotation of the Digital Crown.

---

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)