canPresent
A Boolean value that indicates whether the app can successfully present the notice sheet to inform people about external purchases.
Declaration
static var canPresent: Bool { get async }Discussion
Check this property, as shown below, to determine whether your app can successfully call presentNoticeSheet() to inform people before showing external purchases:
await externalPurchase.canPresent Check the value of this property again whenever the App Store storefront changes by using the updates asynchronous sequence of Storefront.
This property is true if all the following conditions are met:
The current App Store storefront allows external purchase, and the person is eligible to make external purchases.
Your app configures the com.apple.developer.storekit.custom-purchase-link.allowed-regions entitlement, or it configures the com.apple.developer.storekit.external-purchase entitlement and the SKExternalPurchase, including the country code for the current App Store storefront.
Otherwise, this property is false.
When this property is false, check canMakePayments to determine whether your app can offer in-app purchases using the StoreKit In-App Purchase APIs. For more information, see canMakePayments.