DEV Community

Discussion on: Button Styles in SwiftUI

Collapse
 
maeganwilson_ profile image
Maegan Wilson

What do you mean by button id? I don’t quite understand.

Collapse
 
hemaks123 profile image
hemaks123

Is it possible to access the button tag inside the button action in SwiftUI?

Collapse
 
hemaks123 profile image
hemaks123

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?