Created
December 15, 2022 16:55
-
-
Save thepearl/9eb3be5760d3f58393491433acfa4682 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 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