Type Method


Gets a system font with the given style and design.


static func system(_ style: Font.TextStyle, design: Font.Design = .default) -> Font

See Also

Getting System Fonts


Gets a font from a platform font instance.

static func system(size: CGFloat, weight: Font.Weight, design: Font.Design) -> Font

Specifies a system font to use, along with the style, weight, and any design parameters you want applied to the text.

static func custom(String, size: CGFloat) -> Font

Gets a custom font with the given name and size.

enum Font.TextStyle

A dynamic text style to use for fonts.

enum Font.Design

A design to use for fonts.