The Lazy Swift Blog

The one-page blog spreading knowledge one piece at time!

Greetings fellow Swifter! Here's my advice for you: be like lazy variables and lazy views in the Swift programming language: do the right thing, at the right time, only if it's truly needed, in the name of efficiency.

TIP OF THE DAY FOR THE SAVIOR iOS DEVELOPER:

Sometimes it is necessary to update the views when a new value is assigned to a non-observable property or when the system cannot recognize a change in the model. In such cases, we can assign a new identity to the view. For this purpose, SwiftUI provides the .id() modifier.

Contact Me