How to get your API calls to load once… and only once. — UIKit and UIViewControllers gave us quite a few options in regard to controlling lifecycle events: viewDidLoad, viewWillAppear, viewDidAppear, viewWillDisappear, viewDidDisappear, and so on. SwiftUI, on the other hand, basically gives us onAppear and onDisappear. So if we want to load some data for a view, we typically end up doing…