Reading time: 8 min
This recipe shows how to format content of a SwiftUI
Text with HTML via
NSAttributedString. The solution isn't fully complete as it doesn't support all the HTML tags, nor does it support hyperlinks (even though they're supported in attributed strings) - but it gets the job done most of the time...
Search our recipes!
Have a recipe for us?
Get in touch and let's grow the cookbook together!