Created
June 20, 2020 08:30
-
-
Save vlondon/42496cd9594f24090c481ca94ff1ce6a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 isSubtitleVisible: Bool = false | |
var body: some View { | |
VStack { | |
Text("Title") | |
Text("Subtitle").isHidden(isSubtitleVisible) | |
Text("Body") | |
Spacer() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment