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.