init(coder:)
Creates a share from a serialized instance.
Declaration
init(coder aDecoder: NSCoder)Parameters
- aDecoder:
The coder to use when deserializing the share.
Discussion
When saving a newly created CKShare, you must save the share and its rootRecord in the same CKModifyRecordsOperation batch.