Skip to content

Instantly share code, notes, and snippets.

@dheerajn
Last active September 15, 2021 22:44
Show Gist options
  • Save dheerajn/35cef4bd73323f186a622d162125aa7b to your computer and use it in GitHub Desktop.
Save dheerajn/35cef4bd73323f186a622d162125aa7b to your computer and use it in GitHub Desktop.
struct ContentView: View {
var body: some View {
VStack {
Text("Text 1 ")
.modifier(LargeTitle())
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
struct LargeTitle: ViewModifier {
func body(content: Content) -> some View {
content
.font(.largeTitle)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment