pub fn text_editor(value: &str) -> View
TextEditor(text:) showing a fixed string, which the user cannot edit.
TextEditor(text:)
As with textfield, the string becomes a Binding.constant and SwiftUI treats that as read-only.
textfield
Binding.constant