NatLogo

public final class NatLogo : UIView

Note

This component is available in the following variants:
  • ✅ Base

With the following attribute status:

  • Model:
    • A
    • B
  • Color:
    • Neutral
    • Primary
    • Secondary
    • Highlight
    • Surface
  • Size:
    • Medium to Veryhuge

NatLogo represents Design System’s logo component. The logo image changes according to the configured theme and it has different model, color and size options. The default model is A; the default size is veryHuge; and the default color is neutral.

Note

the size can only be changed at init()

Example of usage:

   let logo = NatLogo(size: .medium)
   logo.configure(color: .primary)
   logo.configure(model: .modelB)

Requires

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

   DesignSystem().configure(with: AvailableTheme)

Inits

  • Undocumented

    Declaration

    Swift

    public init(size: Size? = .veryHuge)

Public methods

  • Configures a model for the logo

    Declaration

    Swift

    public func configure(model: Model, lang: Language = .none)

    Parameters

    model

    an option from Model enum

  • Configures a color for the logo

    Declaration

    Swift

    public func configure(color: Color)

    Parameters

    color

    an option from Color enum

  • Color is a enum that represents color values for NatLogo.

    These are all color options:

    • neutral (default)
    • primary
    • secondary
    • highlight
    • surface
    See more

    Declaration

    Swift

    public enum Color
  • Model is a enum that represents model options for NatLogo image.

    These are all model options:

    • modelA (A)
    • modelB (B)
    See more

    Declaration

    Swift

    public enum Model
  • Undocumented

    See more

    Declaration

    Swift

    public enum Language : String
  • Size is a enum that represents size values for NatLogo.

    These are all size options:

    • veryHuge (default)
    • hugeXXX
    • hugeXX
    • hugeX
    • huge
    • largeXXX
    • largeXX
    • largeX
    • large
    • mediumX
    • medium
    See more

    Declaration

    Swift

    public enum Size