Created
October 9, 2019 20:02
-
-
Save azamsharp/86cc21f16fbf4171772190215b8803de 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 { | |
@State private var isOn: Bool = false | |
var body: some View { | |
return VStack { | |
Text(self.isOn ? "🌞" : "🌙") | |
.font(.custom("Arial", size: 100)) | |
DayNightView(isOn: $isOn) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment