save(_:)
Saves a specific subscription.
Declaration
func save(_ subscription: CKSubscription) async throws -> CKSubscriptionParameters
- subscription:
The subscription to save.
Return Value
The saved subscription (as it appears on the server).
Discussion
This method throws an error if the request fails, such as when the network is unavailable or the device doesn’t have an active iCloud account.
For information on a more convenient way to save subscriptions, see modifySubscriptions(saving:deleting:).