<!--
{
  "availability" : [
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/digitalCrownRotation(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE20digitalCrownRotationyQrAA7BindingVyqd__GSBRd__lF"
  },
  "title" : "digitalCrownRotation(_:)"
}
-->

# digitalCrownRotation(_:)

Tracks Digital Crown rotations by updating the specified binding.

```
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

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)
    }
}
```

![A screenshot showing a value received by turning the Digital Crown](images/com.apple.SwiftUI/SwiftUI-View-digitalCrownRotationBinding@2x.png)

---

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)