Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
569 views
in Technique[技术] by (71.8m points)

uitextfield - 如何不在UIViewRepresentable MultiLineTextField中保留默认文本(How not to erace default text in MultiLineTextField, UIViewRepresentable)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...