Last active
August 7, 2020 10:00
-
-
Save hirauchg/ee0d893000b1188d0f895178b533f9f2 to your computer and use it in GitHub Desktop.
TextFieldの実装
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 { | |
VStack(spacing: 20) { | |
TextField("PlainTextFieldStyle", text: $name) | |
.font(.title) | |
.textFieldStyle(PlainTextFieldStyle()) | |
TextField("RoundedBorderTextFieldStyle", text: $name) | |
.font(.title) | |
.textFieldStyle(RoundedBorderTextFieldStyle()) | |
TextField("DefaultTextFieldStyle", text: $name) | |
.font(.title) | |
.textFieldStyle(DefaultTextFieldStyle()) | |
}.padding(20) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment