Works "as designed" in macOS app! Thanks for the tip/hint. :-)
Post
Replies
Boosts
Views
Activity
My solution looks like this
@State var counter = 0
@State var buttonTitle = "Klick mich!"
var body: some View {
VStack {
// other controls
Button(buttonTitle) {
counter += 1
buttonTitle = "\(counter) mal\(counter > 1 ? "e":"") geklickt"
}
}
Cool, this example code save my day and my app works in the way I have thought thanks to this examples the lead me to the right way!