Display formatted text


#1

Any advice would be very much appreciated.

What are you using to display formatted text that comes from an external source. For example what are you using to show an in app changelog after checking for updates?

HTML and the web browser component comes to mind, but it feels like overkill to fire up a complete web browser instance for a few lines of formatted text.


#2

Would an AttributedString do what you want?

Or just a TextEditor? Although they're mostly used for only a single font, they can actually contain a mixture of fonts and sizes.


#3

An AttributedString would be an ideal candidate, it has everything thats needed to display the kind of formatted text I have in mind.

The only thing missing is an easy way to construct the AttributedString from a simple text format. For example a html fragment that only contains a few kinds of tags like headers, paragraphs, lists and bold / italic / unterline.