set(_:forKey:)
Sets the value of the specified key to a property list object.
Declaration
func set(_ anObject: Any?, forKey aKey: String)Parameters
- anObject:
The property list type to save to the iCloud key-value store.
- aKey:
The key to associate with the value.
Discussion
Use this method to write property list object types to the iCloud key-value store.