A dynamic text style to use for fonts.


enum TextStyle


Conforms To

See Also

Getting System Fonts


Gets a font from a platform font instance.

static func system(Font.TextStyle, design: Font.Design) -> Font

Gets a system font with the given style and design.

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.Design

A design to use for fonts.