Instance Method

save(completion:)

Saves any changes you’ve made in the data store.

Declaration

func save(completion: ((Error?) -> Void)? = nil)

Parameters

completion

A closure the method calls on completion of the save operation with an optional error value that indicates the reason for failure, if any.

Discussion