Height

public enum Height

Height is a enum that represents height values for the button component.

These are all sizes allowed for a NatButton:

  • small
  • medium (should be default)
  • large

Example of usage:

   button.heightAnchor.constraint(equalToConstant: NatButton.Height.medium)

Requires

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

DesignSystem().configure(with: AvailableTheme)

  • Undocumented

    Declaration

    Swift

    public static var small: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var medium: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var large: CGFloat { get }