title: onDestroy() equivalent for IOS
body: <p>I am looking for an swift method that acts like onDestroy() in android. I want it not to be called when the home button is pressed, it should only be called when the application is quit entirely. I tried using the deinit method but it was never called.</p>