📜  swiftui 文本字段高度 - Swift 代码示例

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

代码示例1
//It can be solved by using a .frame modifier, and the height argument

TextField("Random text", text: $text)
    .frame(height: CGFloat)

//This creates a frame around the textfield, and then sets the height to be a specific number of pixels