How to show HTML or Markdown in a SwiftUI Text?

后端 未结 5 1521
孤城傲影
孤城傲影 2020-12-31 12:39

How can I set a SwiftUI Text to display rendered HTML or Markdown?

Something like this:

Text(HtmlRenderedString(fromString: \"

        
5条回答
  •  旧时难觅i
    2020-12-31 13:29

    I created a markdown library specifically for SwiftUI:

    https://github.com/Lambdo-Labs/MDText

    Feel free to contribute!

提交回复
热议问题