Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created May 22, 2021 03:13
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/5035d55b773fc72075894889c9a59519 to your computer and use it in GitHub Desktop.
Save laevandus/5035d55b773fc72075894889c9a59519 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