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