Skip to content

Instantly share code, notes, and snippets.

@pabloblancog
Created September 17, 2020 11:08
Styling - SwiftUI
Button(action: {}){
Text("Primary button")
}
.buttonStyle(ButtonStylePalette.primary)
Button(action: {}){
Text("Secondary button")
}
.buttonStyle(ButtonStylePalette.secondary)
Button(action: {}){
Text("Destructive button")
}
.buttonStyle(ButtonStylePalette.destructive)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment