-
-
Save laevandus/5316518d0e4a1990ee48c7a54197fcee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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