Michael Long
Mar 18, 2022

--

You’d think so, but task can be called more than once just like onAppear. Put a task on a visible view element and do the forward/backward navigation mentioned in the article and task will be called each time.

Task basically just streamlines handling async/await calls within SwiftUI code.

--

--

Michael Long
Michael Long

Written by Michael Long

I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.

Responses (1)