How do I limit TextEditor by lineLimit in SwiftUI?

后端 未结 0 759
失恋的感觉
失恋的感觉 2021-01-18 04:43

I know how to limit the number of characters in a TextEditor. But is there a way to limit it by line number instead of by character?

With something like this?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题