I was wondering if there is a predefined number input in SwiftUI for macOS which looks like this:

It is a casual Apple number input consisting of both the TextField and two increase and decrease buttons.
HStack {
Text("Widths")
TextField("", value: $input, formatter: NumberFormatter())
.frame(width: 50)
Stepper(value: $input, in: 1...8) {
EmptyView()
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With