NSString

public extension NSString
  • Changing fonts and text color

    Declaration

    Swift

    @objc
    func setFonts(_ fonts: [UIFont : UIFont], textColor color: UIColor?) -> NSMutableAttributedString?

    Parameters

    fonts

    The first is the currently used font, the second is the desired font.

    color

    Changing text color.

    Return Value

    NSMutableAttributedString