struct ContentView: View {
@State private var inputText = ""
var body: some View {
VStack {
TextField("ここに文字を入力", text: $inputText)
Text("入力した文字\(inputText)")
}
}
}
テキストの配置
.multilineTextAlignment(.center)

