I\'m finding it extraordinarily difficult to categorize and account for what events I get (or don\'t get) when the user swipes my app up in the app switcher on iOS 13. This
in my case, I want to save user state when the app is terminated by the user or the system, applicationWillTerminate(_:) does not being called for me most of the time.
I achieved what I want by using sceneWillResignActive(_ scene: UIScene)