Last active
September 15, 2021 22:44
-
-
Save dheerajn/35cef4bd73323f186a622d162125aa7b 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 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