神刀安全网

Maniac Dev : Swift Library For Converting Markdown To NSAttributedString For Easy Rich Text

SwiftyMarkdown is a Swift library from Simon Fairbairn allows you to easily create formatted text by converting markdown to NSAttributedString.

You can use SwiftyMarkdown to convert Markdown files and strings and there is also support for different fonts and colors.

Usage is simple, and the following example shows how to convert a markdown string to an NSAttributedString:

let md = SwiftyMarkdown(string: “# Heading/nMy Markdown string”)
md.attributedString()

Maniac Dev : Swift Library For Converting Markdown To NSAttributedString For Easy Rich Text

You can find SwiftyMarkdown on Github here .

A nice library for quickly creating rich text.

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Maniac Dev : Swift Library For Converting Markdown To NSAttributedString For Easy Rich Text

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮