NSString
public extension NSString
-
Changing fonts and text color
Declaration
Swift
@objc func setFonts(_ fonts: [UIFont : UIFont], textColor color: UIColor?) -> NSMutableAttributedString?Parameters
fontsThe first is the currently used font, the second is the desired font.
colorChanging text color.
Return Value
NSMutableAttributedString
View on GitHub
NSString Extension Reference