Font

public struct Font

An environment-dependent font.

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

    Declaration

    Swift

    public static func system(size: Double,
                              weight: Weight = .regular,
                              design: Design = .default) -> Font
  • A font with the title text style.

    Declaration

    Swift

    public static var title: Font { get }
  • A font with the subheadline text style.

    Declaration

    Swift

    public static var subheadline: Font { get }
  • A weight to use for fonts.

    See more

    Declaration

    Swift

    public enum Weight : Int
  • A design to use for fonts.

    See more

    Declaration

    Swift

    public enum Design : Hashable