willChangeValue(forKey:)
Provides an opportunity to respond when a value of a given property is about to change.
Declaration
func willChangeValue(forKey key: String)Parameters
- key:
The name of the property that will change.
Discussion
For more details, see Key-Value Observing Programming Guide.
You must not override this method.