UIFont

class UIFont : NSObject, NSCopying
  • Returns a font with the provided parameters.

    Declaration

    Swift

    public static func font(name: String, fontSize: CGFloat) -> UIFont

    Parameters

    name

    Name of the font.

    fontSize

    Size of the font.

    Return Value

    UIFont of the name and size provided and defaults to system font if font it not found.