IPBeneficiaryCardView

public class IPBeneficiaryCardView : UIView

Beneficiary Card View

Usage by programatically init:

let config = BeneficiaryConfig(barColor: .systemRed,
                               cardTextColor: .darkGray,
                               selectorColor: .systemRed,
                               cardTitle: "CERJ",
                               cnpj: "99.999.999.0001-99",
                               activated: false,
                               amount: 300,
                               amountLabel: "Valor Limite:",
                               text: "Débito automático no dia do vencimento",
                               imageUrl: "https://devshift.biz/wp-content/uploads/2017/04/profile-icon-png-898.png",
                               type: .monthly)

let cardView = IPBeneficiaryCardView(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

Public variables

  • Undocumented

    Declaration

    Swift

    public var handleSelectorChange: ((Bool) -> ())?

Overridden inits

Public methods

  • Configures the Beneficiary Card View from the given parameters.

    Declaration

    Swift

    public func configure(settings: BeneficiaryConfig)

    Parameters

    settings

    Object containg layout configuration

  • Undocumented

    Declaration

    Swift

    public override func layoutSubviews()