Skip to content

Instantly share code, notes, and snippets.

@laevandus

laevandus/SubtitledButton.swift Secret

Created May 22, 2021
Embed
What would you like to do?
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