NatCard

public final class NatCard : UIView

NatCard is a class that represents the Card component from the design system. It’s necessary to instantiate it and set its height and width constraints.

Example of usage:

card.configure(elevation: true)
card.configure(borderRadius: true)

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 init()

Public methods

  • Sets if the card has elevation

    Declaration

    Swift

    public func configure(elevation: Bool)

    Parameters

    elevation

    a bool that indicates if the card has elevation

  • Sets if the card has rounded corners

    Declaration

    Swift

    public func configure(borderRadius: Bool)

    Parameters

    borderRadius

    a bool that indicates if the card has rounded corners