Created
September 9, 2019 23:05
-
-
Save vince19972/e9cd9d11cc198e80f51a99efabb7e927 to your computer and use it in GitHub Desktop.
Demo code of environment settings and font in SwiftUI
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
#if DEBUG | |
struct ContentView_Previews: PreviewProvider { | |
static var previews: some View { | |
ContentView() | |
.environment(\.font, Font.Typography.mainFont) | |
.environment(\.colorScheme, .dark) | |
} | |
} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment