Font Weights

The following constants represent font weights that can be used as values for weight.

Overview

You can also use these constants to specify the weight parameter in systemFontOfSize:weight. Note that most fonts do not include variants in all these font weights.

Topics

Constants

static let ultraLight: UIFont.Weight

The ultra light font weight.

static let thin: UIFont.Weight

The thin font weight.

static let light: UIFont.Weight

The light font weight.

static let regular: UIFont.Weight

The regular font weight.

static let medium: UIFont.Weight

The medium font weight.

static let semibold: UIFont.Weight

The semibold font weight.

static let bold: UIFont.Weight

The bold font weight

static let heavy: UIFont.Weight

The heavy font weight.

static let black: UIFont.Weight

The black font weight.