Last active
December 19, 2019 08:19
-
-
Save piyush23dez/3f79f4fd281446517ad10e13ec54824e 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 name = "" | |
var body: some View { | |
Form { | |
TextField("Enter your name", text: $name) | |
Text("Your name is \(name)") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment