EdgeInsets

public enum EdgeInsets

EdgeInsets is a enum that represents contentEdgeInsets values of button component.

These are all `edgeInsets allowed for a NatButton:

  • small
  • medium (default)
  • large

Example of usage:

   let button = NatButton(style: .contained)
   button.contentEdgeInsets = NatButton.EdgeInsets.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: UIEdgeInsets { get }
  • Undocumented

    Declaration

    Swift

    public static var medium: UIEdgeInsets { get }
  • Undocumented

    Declaration

    Swift

    public static var large: UIEdgeInsets { get }