FontWeight

public enum FontWeight : CGFloat, CaseIterable

The nine basic font weights. Not all fonts support all 9 weights.

  • ultralight (aka extra light) weight (100)

    Declaration

    Swift

    case ultralight = 100
  • thin weight (200)

    Declaration

    Swift

    case thin = 200
  • light weight (300)

    Declaration

    Swift

    case light = 300
  • regular weight (400)

    Declaration

    Swift

    case regular = 400
  • medium weight (500)

    Declaration

    Swift

    case medium = 500
  • semibold weight (600)

    Declaration

    Swift

    case semibold = 600
  • bold weight (700)

    Declaration

    Swift

    case bold = 700
  • heavy (aka extra bold) weight (800)

    Declaration

    Swift

    case heavy = 800
  • black weight (900)

    Declaration

    Swift

    case black = 900
  • Conversion from FontWeight enum to UIFont.Weight struct

    Declaration

    Swift

    var systemWeight: UIFont.Weight { get }