How do I check if the CloudKit/iCloud account of the current Apple ID logged in an iOS device already has a CKDatabaseSubscription?

How do I check to see if a CKDatabaseSubscription has already been "saved" in CloudKit for a specific user? The Apple sample CloudKitShare actually has code to create database subscriptions each time the app is launched. If it is already there, the code ignores it.

You can use the fetchAllSubscriptions method on a CKDatabase object — documentation for this method is available here.

How do I check if the CloudKit/iCloud account of the current Apple ID logged in an iOS device already has a CKDatabaseSubscription?
 
 
Q