Open conath opened 2 years ago
Seems like TextEditor
does not support AttributedString
yet.
What I would like is to write markdown in the VM config and then see the formatted text when I select the VM in the list. That should be possible, right?
It is possible using Text
but Text
doesn't provide scrolling so you would have to create a custom view that lets you display the text in a scrollable view. I think Apple should provide an updated API.
This seems like it would be easily possible by wrapping UITextView with UIViewRepresentable. I found this Swift Package that implements this.
SwiftUI is already extremely fragile and things keep breaking or not working properly even with minor OS updates. I hesitate to add any "custom" SwiftUI controls and would rather wait for an "official" Apple API.
I would like to be able to write rich notes about my VMs using the Markdown syntax.
This could be implemented by using the
AttributedString
API introduced by Apple in 2021.