TextEditor not working well with large chunk of text and new lines.
Just remove @Published and use any mechanism that not cause SwiftUI to recompute view tree changes while you typing.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: