📜  swiftui 文本字段多行 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:01.034000             🧑  作者: Mango

代码示例1
//You can use the .multiLineTextAlignment modifier

TextField("Random text", text: $text)
    .multiLineTextAlignment(.leading)

//This aligns the text to the left
//There are more propeties besides .leading, more can be found at the source