Lockup
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 lockup 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.
Only the foreground color will be applied to the lockup. Background will always be transparent.
let lockupView = LockupView()
// optionally set a color scheme
lockupView.colorScheme = .dynamic(lightPalette: .blackOnMint, darkPalette: .mintOnBlack)
Below are examples of the lockup in each of the color schemes:
