Get Updates By E-mail 

Article Written By:
Johann Dowa

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()

Swifty Markdown

You can find SwiftyMarkdown on Github here.

A nice library for quickly creating rich text.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments