canModifyManagedObjects(in:)
Returns a Boolean value that indicates whether the user can modify the specified persistent store.
Declaration
func canModifyManagedObjects(in store: NSPersistentStore) -> BoolParameters
- store:
The persistent store.
Return Value
true if the user can modify records in the persistent store’s CloudKit database; otherwise, false.
Discussion
Use this method to determine whether the user is able to write any records to the CloudKit database. To find out if the user can modify a specific object, use the canUpdateRecord(forManagedObjectWith:) and canDeleteRecord(forManagedObjectWith:) methods instead.
This method always returns true for persistent stores that manage the user’s private CloudKit database.