Created
September 27, 2021 03:01
-
-
Save dheerajn/aef9b26940dfd244ada9c9ae47ae3b05 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 PrintingChanges: View { | |
@State var counter = 0 | |
var body: some View { | |
Self._printChanges() | |
return Button { | |
counter += 1 | |
} label: { | |
Text("Current Value \(counter)") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment