I'm showing several Steppers in a SwiftUI view on watchOS. When the user taps the steppers & turns the digital crown it's possible to select multiple of the steppers (green "focus" border) appears.
I've tried to make the steppers mutually exclusive by using the following snippet, but it didn't work.
`@FocusState private var value: StepperType?`
[...]
var body: some View {
Form {
ForEach(StepperType.allCases, id: \.self) { stepperCase in
Stepper...
.focused($value, equals: stepperCase)
}
}
}
Any ideas how I can prevent multiple Steppers from being "focused" by the crown at the same time?