NatFonts

public struct NatFonts

NatFonts is a struct that has methods to create fonts from the Design System tokens. According with the current Brand in the Design System this properties can change.

Example of usage:

   label.font = NatFonts.font(ofSize: .heading6 withWeight: .regular)

Requires

It’s necessary to configure the Design System with a theme or fatalError will be raised.

   DesignSystem().configure(with: AvailableTheme)

Size

  • Undocumented

    See more

    Declaration

    Swift

    public enum Size

Weight