One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
/* | |
*** Academy Engraved LET *** | |
AcademyEngravedLetPlain | |
--------------------- | |
*** Al Nile *** | |
AlNile | |
AlNile-Bold | |
--------------------- | |
*** American Typewriter *** | |
AmericanTypewriter |
extension String { | |
func foregroundColor(_ color: UIColor) -> NSAttributedString { | |
NSAttributedString(string: self, attributes: [.foregroundColor : color]) | |
} | |
func background(_ color: UIColor) -> NSAttributedString { | |
NSAttributedString(string: self, attributes: [.backgroundColor: color]) | |
} | |
func underline(_ color: UIColor, style: NSUnderlineStyle = .single) -> NSAttributedString { | |
NSAttributedString(string: self, attributes: [.underlineColor: color, .underlineStyle: style.rawValue]) | |
} |