Link Search Menu Expand Document

Font.TextStyle

Constants that describe the preferred styles for fonts.

struct TextStyle: Hashable, Equatable, RawRepresentable 

Inheritance

Equatable, Hashable, RawRepresentable

Initializers

init(rawValue:)

public init(rawValue: String) 

Properties

rawValue

public let rawValue: String

body

The font for body text.

static var body: Font.TextStyle 

callout

The font for callouts.

static var callout: Font.TextStyle 

caption1

The font for standard captions.

static var caption1: Font.TextStyle 

caption2

The font for alternate captions.

static var caption2: Font.TextStyle 

footnote

The font for footnotes.

static var footnote: Font.TextStyle 

headline

The font for headings.

static var headline: Font.TextStyle 

subheadline

The font for subheadings.

static var subheadline: Font.TextStyle 

largeTitle

The font style for large titles.

static var largeTitle: Font.TextStyle 

title1

The font for first-level hierarchical headings.

static var title1: Font.TextStyle 

title2

The font for second-level hierarchical headings.

static var title2: Font.TextStyle 

title3

The font for third-level hierarchical headings.

static var title3: Font.TextStyle