---
title: "rotateDigitalCrown(delta:)"
framework: xcuiautomation
role: symbol
role_heading: Instance Method
path: "xcuiautomation/xcuidevice/rotatedigitalcrown(delta:)"
---

# rotateDigitalCrown(delta:)

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

## Declaration

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

## Parameters

- `rotationalDelta`: A float value that indicates the fraction of a full rotation of the Digital Crown.

## Discussion

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.

## See Also

### Interacting with buttons and the Digital Crown

- [press(_:)](xcuiautomation/xcuidevice/press(_:).md)
- [hasHardwareButton(_:)](xcuiautomation/xcuidevice/hashardwarebutton(_:).md)
- [XCUIDevice.Button](xcuiautomation/xcuidevice/button.md)
- [rotateDigitalCrown(delta:velocity:)](xcuiautomation/xcuidevice/rotatedigitalcrown(delta:velocity:).md)
