Skip to content

Instantly share code, notes, and snippets.

@azamsharp
Created June 27, 2020 17:15
Show Gist options
  • Save azamsharp/21ff9d359e5600866fc1ea696428feff to your computer and use it in GitHub Desktop.
Save azamsharp/21ff9d359e5600866fc1ea696428feff to your computer and use it in GitHub Desktop.
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