Badge
These docs are no longer maintained. The Afterpay iOS SDK guides have moved to the Cash App Afterpay developer docs for US merchants, and the Afterpay developer docs for other regions.
The Afterpay badge is a simple UIView that can be scaled to suit the needs of your app. As per branding guidelines it has a minimum width constraint of 64 points.
let badgeView = BadgeView()
// optionally set a color scheme
lockupView.colorScheme = .dynamic(lightPalette: .blackOnMint, darkPalette: .blackOnWhite)
Below are examples of the badge in each of the color schemes:

