I've implemented MultiLineTextField (6min video) which uses UIViewRepresentable
in swiftUI so I could create a multi line text field.
(我已经实现了MultiLineTextField (6分钟视频),该UIViewRepresentable
在swiftUI中使用UIViewRepresentable
,因此我可以创建多行文本字段。)
However, it seems to erase the default text inputted here , but I don't want it to.
(但是,这似乎会删除此处输入的默认文本,但我不希望这样做。)
I've tried looking into the functions in UIViewRepresentable, but to no avail.
(我试图研究UIViewRepresentable中的函数,但无济于事。)
Is there a way to either change its settings, or a better way to make Multiline text fields?
(有没有办法更改其设置,或者有更好的方法来制作多行文本字段?)
ask by Miss Swiss translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…