Pay Kit iOS: UI Components

PayKitUI provides an unmanaged CashAppPayButton and a CashAppPaymentMethod view in both UIKit and SwiftUI.

These views accept a SizingCategory to specify the preferred size of the view within your app. They also support light/dark themes by default. These views must be used as-is, without modification.

CashAppPayButton

This is an example of CashAppPayButton:

image

You can use the following example for instantiating the button:

1let button = CashAppPayButton(size: .small, onClickHandler: {})

CashAppPaymentMethod

This is an example of CashAppPaymentMethod:

image

You can use the following example for instantiating the button:

1let paymentMethod = CashAppPaymentMethod(size: .small)
2paymentMethod.cashTag = "$jack"