I want to target iOS 15 and I get deprecation warnings in some CloudKit properties. I was using modifyRecordsCompletionBlock
on CKModifyRecordsOperation
and now I get:
'modifyRecordsCompletionBlock' was deprecated in iOS 15.0: Use modifyRecordsResultBlock instead
However with modifyRecordsCompletionBlock
I'd get an array of the successfully modified records as input for the block which I'd in turn use for updating my local DB, whereas the input for modifyRecordsResultBlock
is Result<Void, Error>
.
Basically I'm being told to use a different closure where I get no data and I don't know how to complete my local DB updates.
Any ideas?