> This page is for Cash App Pay Partner API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.cash.app/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.cash.app/_mcp/server.

# 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`:

You can use the following example for instantiating the button:

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

### CashAppPaymentMethod

This is an example of `CashAppPaymentMethod`:

You can use the following example for instantiating the button:

```swift
let paymentMethod = CashAppPaymentMethod(size: .small)
paymentMethod.cashTag = "$jack"
```