Contents

presentCodeRedemptionSheet()

Displays a sheet that enables customers to redeem offer codes that you configure in App Store Connect.

Declaration

func presentCodeRedemptionSheet()

Mentioned in

Discussion

The presentCodeRedemptionSheet() function displays a system sheet where customers can enter and redeem offer codes. If you generate offer codes in App Store Connect, call this function to enable customers to redeem the offer. For information on implementing offer codes, see Implementing offer codes in your app.

When your app calls presentCodeRedemptionSheet(), the system determines where to display the screen. Use presentCodeRedemptionSheet() to support devices running iOS 14 through iOS 15, and iPadOS 14 through iPadOS 15.

For information on configuring and generating offer codes, see Set up offer codes.

This method applies to offer codes only; it doesn’t apply to promo codes for apps or in-app purchases. For more information on promo codes, see Request and manage promo codes.

This function doesn’t affect Mac apps built with Mac Catalyst.