role
The role of the button.
Declaration
var role: UIButton.Role { get set }Discussion
Set the UIButton.Role to define a button as the primary action or the cancel action in a view. Catalyst apps use this role to set the appearance and default key-binding of the buttons.