Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created May 15, 2022 00:59
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/254d9175da4748d042345a98b7e0bd7a to your computer and use it in GitHub Desktop.
Save laevandus/254d9175da4748d042345a98b7e0bd7a to your computer and use it in GitHub Desktop.
struct SubtitledButton: View {
let title: LocalizedStringKey
let subtitle: LocalizedStringKey
let action: () -> Void
var body: some View {
Button(action: action, label: {
VStack(spacing: 4) {
Text(title)
Text(subtitle)
.font(.footnote)
}
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment