Last active
December 23, 2016 23:10
-
-
Save pangers/a942d22467fbcbd1cae31a82b082ac35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension String { | |
func toAttributedString() -> NSAttributedString { | |
return NSAttributedString(string: self) | |
} | |
} | |
//Example Usage | |
"Convert me please".toAttributedString() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment