In AppDelegate.swift, Xcode sets the method by default applicationWillResignActive. This is what you should see if you have not edited or deleted the method:
func applicationWillResignActive(_ application: UIApplication) {
}
From the Xcode template ...
, . (, SMS-) . , . .
, , , , . , .
, !