Created
June 27, 2020 17:15
-
-
Save azamsharp/21ff9d359e5600866fc1ea696428feff 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 count: Int = 0 | |
var body: some View { | |
VStack { | |
Text("\(count)") | |
Button("INCREMENT") { | |
count += 1 | |
} | |
CounterView() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment