> This page is for Afterpay.

> 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.

# Lockup

`LockupView` shows the Afterpay logo. Use it where you list Afterpay as a payment method or mention Afterpay without a price.

## Add the lockup

```swift
let lockupView = LockupView(colorScheme: .static(.default))
view.addSubview(lockupView)
```

The lockup keeps its aspect ratio, so set its width and let the height follow. Brand guidelines require a width of at least 64 points. The SDK doesn't enforce this, so set the width yourself. The lockup's background is always transparent.

## Color schemes

Choose a palette that contrasts with the background behind the lockup:

| Palette      | Lockup | Use it on         |
| ------------ | ------ | ----------------- |
| `.default`   |        | Light backgrounds |
| `.darkMono`  |        | Light backgrounds |
| `.alt`       |        | Dark backgrounds  |
| `.lightMono` |        | Dark backgrounds  |

If your app supports dark mode, use a dynamic scheme so that the lockup stays visible in both appearances:

```swift
lockupView.colorScheme = .dynamic(
  lightPalette: .default,
  darkPalette: .alt
)
```

> **Badges**
>
> The Cash App Afterpay brand uses the lockup only. `BadgeView` and `CompactBadgeView` stay hidden when the configuration locale is `en_US`, and they trigger an assertion failure in debug builds.