SwiftUI Markdown Text

Rendering markdown in a SwiftUI Text view is supported by default:

Text("# This is a heading\n*italic*")

If you are rendering text from a variable, wrap it inside a LocalizedStringKey:

Text(LocalizedStringKey(markdown))
Reply via emailBuy me a coffee

Join the newsletter

Every two weeks, I send an email about things that interest me, things I have built and things I have learned.

Previous issues