Style

public struct Style

Style is a enum that represents style values for the button component.

These are all styles allowed for a NatButton:

  • contained
  • outlined
  • text

Example of usage:

   let containedButton = NatButton(style: .contained)
   let outlinedButton = NatButton(style: .outlined)
   let textButton = NatButton(style: .text)

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 contained: NatButton.Style { get }
  • Undocumented

    Declaration

    Swift

    public static var outlined: NatButton.Style { get }
  • Undocumented

    Declaration

    Swift

    public static var text: NatButton.Style { get }