didSetnewValue
didSet is a property observer in Swift that is called immediately after a value has been set. It allows you to perform actions or updates in response to a property's value changing. The didSet observer is invoked every time the property's value is set, including during initialization.
Within the didSet block, you can access the new value that was just assigned to the property.
didSet is useful for a variety of tasks, such as updating the user interface, invalidating related data,
It's important to note that you cannot modify the property itself within its own didSet observer. Doing