Skip to content

Instantly share code, notes, and snippets.

@hirauchg
Created August 7, 2020 12:16
Show Gist options
  • Save hirauchg/2271d0252b5a8b11e74a0260b9b2fe9d to your computer and use it in GitHub Desktop.
Save hirauchg/2271d0252b5a8b11e74a0260b9b2fe9d to your computer and use it in GitHub Desktop.
TextFieldの実装
struct ContentView: View {
@State private var name = ""
var body: some View {
TextField("", text: $name)
.font(.title)
.keyboardType(.numberPad)
.padding(20)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment