2 Comments
User's avatar
Michael Long's avatar

The task explanation could be misconstrued. Like onAppear, the task modifier's closure is triggered just before the view is scheduled to appear on the screen.

It's not tied to view *initialization* at all (other than the fact that initialization must happen first). In fact, view initialization could occur many, many times before task ever happens at all.

Expand full comment
Danny Bolella's avatar

You’re absolutely right Michael, I should make that clearer. I’ll make a revision asap to not confuse anyone. Thanks for the feedback, I really appreciate you checking out the article!

Expand full comment