NatSizes

public enum NatSizes

NatSizes is a enum that has access to size properties from the Design System. This properties are used with constraints to handle view size of view objects. According with the current Brand in the Design System this properties can change.

All properties returns a CGFloat.

Example of usage:

   containerView.widthAnchor.constraint(equalToConstant: NatSizes.large)
   containerView.heightAncor.constraint(equalToConstant: NatSizes.tiny)

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 micro: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var tiny: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var small: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var standard: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var semi: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var semiX: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var medium: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var mediumX: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var large: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var largeX: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var largeXX: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var largeXXX: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var huge: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var hugeX: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var hugeXX: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var hugeXXX: CGFloat { get }
  • Undocumented

    Declaration

    Swift

    public static var veryHuge: CGFloat { get }