Hey there,
I was wondering what the best method is to render out HTML content, for a timeline based app in SwiftUI.
For example my json data would return something along the lines of:
[{
content_html: "<p>This is some content, with <a href='somelink.com/username'>a link</a>.</p><p>And perhaps we also have an image here like this: <img src='some-source.com/image.png' alt='image'></p>"
}]
I'd like to render this out using "native" Text, Image views (etc) if at all possible. I tried using a Webview... but performance has been less than optimal in SwiftUI 2. In the example above, also, the link may go to a "profile" which should go and load a screen/view in the app, so am looking for something to handle links etc.
Are there any suggested ways of handling the above?
I'm looking through the site, but can't see anything concrete that I can look at. NSAttributed string is mentioned a few times...
Any suggestions and pointers are super welcome.
Vincent