'updating text inside TextEditor via code - Xcode swift

I'm trying to update the text inside TextEditor via code with no luck and i can't find any examples - Xcode swift

basically I would like to create a scrollable multiline log that can be

  1. highlighted and copy
  2. have clickable hyper links
 TextEditor(text: $textE)
                    .textFieldStyle(.roundedBorder)
textE = textE + "\n" + textToUpdate2


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source