MimiFontBook

public struct MimiFontBook : Equatable

Collection of font properties that can be used to utilize custom fonts in Mimi UI components.

  • Fonts that can be customized in font book.

    • title: Font used for displaying prominent titles.
    • header: Font used for displaying prominent headers for sections of UI.
    • action: Font used for larger action elements which are primarly used for core, primary interactions.
    • body: Font used for standard body text elements, and an optional secondary font for highlights.
    • caption: Font used for very compact text elements, such as annotations and captions.
    Declaration

    Swift

    public enum Font
  • Font used for displaying prominent titles, such as in a navigation bar.

    Declaration

    Swift

    public private(set) var title: MimiFont! { get }
  • Font used for displaying prominent headers for sections of UI.

    Declaration

    Swift

    public private(set) var header: MimiFont! { get }
  • Font used for larger action elements which are primarly used for core, primary interactions.

    Declaration

    Swift

    public private(set) var action: MimiFont! { get }
  • Font used for standard body text elements.

    Declaration

    Swift

    public private(set) var body: MimiFont! { get }
  • Font used for highlighted parts of standard body text elements.

    This should generally be the same point size as the body font, and be a larger weight to signify the highlight.

    Declaration

    Swift

    public private(set) var bodyHighlight: MimiFont? { get }
  • Font used for very compact text elements, such as annotations and captions.

    Declaration

    Swift

    public private(set) var caption: MimiFont! { get }
  • Create a new font book with custom fonts.

    You can specify to override as many fonts as required, any that are not specified will use the appropriate value provided by MimiFontBook.default.

    Declaration

    Swift

    public init(_ fonts: Font...)
    Parameters
    fonts

    Custom fonts.

  • Default font book which utilizes the system font.

    Declaration

    Swift

    public static var `default`: MimiFontBook { get }