Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created May 22, 2021 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/5316518d0e4a1990ee48c7a54197fcee to your computer and use it in GitHub Desktop.
Save laevandus/5316518d0e4a1990ee48c7a54197fcee to your computer and use it in GitHub Desktop.
struct ContentView: View {
var body: some View {
VStack(spacing: 32) {
Text("Hello, world!")
SubtitledButton(title: "First Title", subtitle: "First Subtitle", action: tapAction)
.buttonStyle(PlainButtonStyle())
SubtitledButton(title: "Second Title", subtitle: "Second Subtitle", action: tapAction)
.buttonStyle(RoundedRowButtonStyle())
}.padding()
}
func tapAction() {
print("tapped")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment