IPBaseCardView

public class IPBaseCardView : UIView

Base CardView

Usage by programatically init:

 let config = BaseConfig(barColor: .systemRed,
                        dueText: "Vencendo hoje,",
                        cardTextColor: .darkGray,
                        cnpj: "99.999.999.0001-99",
                        paid: true,
                        isDue: false,
                        fromEmail: false,
                        addedByUser: false,
                        amount: 50,
                        date: "03 Ago",
                        text: "Tipo de Plano: Premium ULTRA HD",
                        type: .netflix)

 let cardView = IPBaseCardView(settings: config)

Alternative to init configuration:


 cardView.configure(settings: config)

### Notes: ###

  1. It can be inherited on .xibs/.storyboards or initialized with the configuration values

Overridden inits

Public methods

  • Creates the Beneficiary Card View from the given parameters inside the Settings object.

    Declaration

    Swift

    public func configure(settings: BaseConfig)

    Parameters

    settings

    Object containing all settings to configure the card layout.

  • Undocumented

    Declaration

    Swift

    public override func layoutSubviews()