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.
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!
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.
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!