Hello.
I want to do a fetch when a view loads. In UIKit I would have used viewDidLoad to do this but in SwiftUI we only have onAppear and task. Is that by design, and if so, what is the recommended way to fetch data?
I wrote a little blog post for a workaround describing the issue and the found solution, but I presume there is a better way.
https://www.ludafux.com/post/viewdidload_doppelganger
Best Regards,
Luda
Selecting any option will automatically load the page