Skip to content

Instantly share code, notes, and snippets.

@thepearl
Created December 15, 2022 16:55
Show Gist options
  • Save thepearl/9eb3be5760d3f58393491433acfa4682 to your computer and use it in GitHub Desktop.
Save thepearl/9eb3be5760d3f58393491433acfa4682 to your computer and use it in GitHub Desktop.
struct HeaderView: View {
let title: String
let subtitle: String
@ViewBuilder
var body: some View {
VStack(alignment: .leading) {
Text(title)
.font(.largeTitle)
Text(subtitle)
.font(.body)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment