---
title: "digitalCrownRotation(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/digitalcrownrotation(_:)"
---

# digitalCrownRotation(_:)

Tracks Digital Crown rotations by updating the specified binding.

## Declaration

```swift
nonisolated func digitalCrownRotation<V>(_ binding: Binding<V>) -> some View where V : BinaryFloatingPoint

```

## Parameters

- `binding`: A binding to a value that updates as the user rotates the Digital Crown. The implicit range is (-infinity, +infinity).

## Discussion

Discussion Use this method to receive values on a binding you provide as the user turns the Digital Crown on Apple Watch. The example below receives changes to the binding value, starting at 0.0 and incrementing or decrementing depending on the direction that the user turns the Digital Crown: struct DigitalCrown: View {     @State private var crownValue = 0.0

var body: some View {         Text("Received Value:\(crownValue, specifier: "%.1f")")             .focusable()             .digitalCrownRotation($crownValue)     } }

## See Also

### Interacting with the Digital Crown

- [digitalCrownAccessory(_:)](swiftui/view/digitalcrownaccessory(_:).md)
- [digitalCrownAccessory(content:)](swiftui/view/digitalcrownaccessory(content:).md)
- [digitalCrownRotation(_:from:through:sensitivity:isContinuous:isHapticFeedbackEnabled:onChange:onIdle:)](swiftui/view/digitalcrownrotation(_:from:through:sensitivity:iscontinuous:ishapticfeedbackenabled:onchange:onidle:).md)
- [digitalCrownRotation(_:onChange:onIdle:)](swiftui/view/digitalcrownrotation(_:onchange:onidle:).md)
- [digitalCrownRotation(detent:from:through:by:sensitivity:isContinuous:isHapticFeedbackEnabled:onChange:onIdle:)](swiftui/view/digitalcrownrotation(detent:from:through:by:sensitivity:iscontinuous:ishapticfeedbackenabled:onchange:onidle:).md)
- [digitalCrownRotation(_:from:through:by:sensitivity:isContinuous:isHapticFeedbackEnabled:)](swiftui/view/digitalcrownrotation(_:from:through:by:sensitivity:iscontinuous:ishapticfeedbackenabled:).md)
- [DigitalCrownEvent](swiftui/digitalcrownevent.md)
- [DigitalCrownRotationalSensitivity](swiftui/digitalcrownrotationalsensitivity.md)
