I've submitted a bug report myself and will see if I can find a workaround.
Thanks! I am actually kind of "unblocked" in a different way by building my own custom component:
@main struct StepperDemoApp: App {
func onIncrement() {
print(#function)
}
func onDecrement() {
print(#function)
}
var body: some Scene {
WindowGroup {
VStack {
Text("Stepper")
Button("Increment") {
self.onIncrement()
}
Button("Decrement") {
self.onDecrement()
}
}
.padding()
}
}
}
This unblocks my use case for my app… but I am still blocked from using the system Stepper component. If I did ship this custom component as a workaround it would be helpful for my repo to be able to explain to readers why this workaround is needed (because the production stepper component is potentially causing a bug on macOS).
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: