StoreKit Changes for Swift StoreKit Removed SKErrorClientInvalid Removed SKErrorPaymentCancelled Removed SKErrorPaymentInvalid Removed SKErrorPaymentNotAllowed Removed SKErrorStoreProductNotAvailable Removed SKErrorUnknown Added SKCloudServiceAuthorizationStatus [enum] Added SKCloudServiceAuthorizationStatus.Authorized Added SKCloudServiceAuthorizationStatus.Denied Added SKCloudServiceAuthorizationStatus.NotDetermined Added SKCloudServiceAuthorizationStatus.Restricted Added SKCloudServiceCapability [struct] Added SKCloudServiceCapability.AddToCloudMusicLibrary Added SKCloudServiceCapability.init(rawValue: UInt) Added SKCloudServiceCapability.MusicCatalogPlayback Added SKCloudServiceCapability.None Added SKCloudServiceController Added SKCloudServiceController.authorizationStatus() -> SKCloudServiceAuthorizationStatus [class] Added SKCloudServiceController.requestAuthorization(_: (SKCloudServiceAuthorizationStatus) -> Void) [class] Added SKCloudServiceController.requestCapabilitiesWithCompletionHandler(_: (SKCloudServiceCapability, NSError?) -> Void) Added SKCloudServiceController.requestStorefrontIdentifierWithCompletionHandler(_: (String?, NSError?) -> Void) Added SKErrorCode [enum] Added SKErrorCode.ClientInvalid Added SKErrorCode.CloudServiceNetworkConnectionFailed Added SKErrorCode.CloudServicePermissionDenied Added SKErrorCode.PaymentCancelled Added SKErrorCode.PaymentInvalid Added SKErrorCode.PaymentNotAllowed Added SKErrorCode.StoreProductNotAvailable Added SKErrorCode.Unknown Added SKCloudServiceCapabilitiesDidChangeNotification Added SKStorefrontIdentifierDidChangeNotification Added SKStoreProductParameterAdvertisingPartnerToken Sending feedback… We’re sorry, an error has occurred. Please try submitting your feedback later. Thank you for providing feedback! Your input helps improve our developer documentation. How helpful is this document? * Very helpful Somewhat helpful Not helpful How can we improve this document? Fix typos or links Fix incorrect information Add or update code samples Add or update illustrations Add information about... * * Required information To submit a product bug or enhancement request, please visit the Bug Reporter page. Please read Apple's Unsolicited Idea Submission Policy before you send us your feedback.