setSerializedValue(_:forKey:)
Provides custom deserialization for patch internal settings that were previously serialized using the method Serializedvalue(forkey:).
Declaration
func setSerializedValue(_ serializedValue: Any!, forKey key: String!)Parameters
- serializedValue:
The value to deserialize.
- key:
The key for the value to deserialize.
Discussion
If your patch has internal settings that do not conform to the NSCoding protocol, you must implement this method. After you deserialize the value, you need to call [self set:value forKey:key] to set the corresponding internal setting of the custom patch instance to the deserialized value.