INDEX>SwiftUI > Views and Controls テキストフィールド Swift struct TextField<Label> where Label : View 解説 A view that displays one or more lines of read-only text. フレームワーク SwiftUI クラス 使用可能 参照 更新時のバージョン 関連記事(外部サイト) 例文 Swift @State private var name = "" var body: some View { VStack { TextField("your name?", text: $name) .textFieldStyle(RoundedBorderTextFieldStyle()) .padding() Text("Hello, World!") .frame(ma
![macOS/iOS API解説](https://cdn-ak-scissors.b.st-hatena.com/image/square/06a15c64ba0ceec233d86d71001ebb29a9dcbf5d/height=288;version=1;width=512/https%3A%2F%2Fcdn.blog.st-hatena.com%2Fimages%2Ftheme%2Fog-image-1500.png)