0

I'm using iOS 13 and its new UISceneDelegate and I want to execute a function when app is killed.

I used to use the applicationWillTerminate function from UIApplicationDelegate but I don't see this function in UISceneDelegate.

So what is the best way to do it using UISceneDelegate ?

Shehata Gamal
  • 98,760
  • 8
  • 65
  • 87
nelson PARRILLA
  • 498
  • 1
  • 6
  • 17

1 Answers1

2

It's still inside AppDelegate

func applicationWillTerminate(_ application: UIApplication) {
    print("applicationWillTerminate")
}
Shehata Gamal
  • 98,760
  • 8
  • 65
  • 87