How do I limit TextEditor by lineLimit in SwiftUI?

Viewed 761

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?

TextEditor(text: $myText).lineLimit(3)
0 Answers
Related