title: Swift - How to get text formatting in a text editor like in the notes app? SwiftUI
body: <p>I currently have a TextEditor, and I want to be able to add text formatting like in the notes app like this:</p>
  <p><a href="https://i.stack.imgur.com/GO63B.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GO63B.png" alt="First" /></a><a href="https://i.stack.imgur.com/WBs4E.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WBs4E.png" alt="Second" /></a></p>
  <p>I've tried with <code>UITextView.allowsEditingTextAttributes = true</code> but it didn't seem to work.</p>
  <p>Any ideas will be highly appreciated.
  :)</p>