In UIKit we can set a button tag and can access it inside the @IBAction method. The same thing I want to do with swiftui. Is it possible to access the button tag inside the button action in SwiftUI?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What do you mean by button id? I don’t quite understand.
Is it possible to access the button tag inside the button action in SwiftUI?
In UIKit we can set a button tag and can access it inside the @IBAction method. The same thing I want to do with swiftui. Is it possible to access the button tag inside the button action in SwiftUI?