willSetnewValue
The willSetnewValue is a property observer in Swift that is called immediately before a value is set on a property. This observer is invoked for any property that has the willSet attribute specified. When willSetnewValue is called, it passes the new value as a parameter, which is typically named newValue by convention. This parameter allows you to access the value that is about to be assigned to the property.
The primary purpose of willSetnewValue is to allow for custom logic to be executed just before a
willSetnewValue is paired with didSetnewValue, another property observer. While willSetnewValue is called before the value is