sceneWillResignActive
sceneWillResignActive is a notification that is posted by the UIApplication object when the application is transitioning from an active state to a background state. This transition occurs when the user, for example, presses the home button on an iOS device or switches to another application. The notification signifies that the application is about to lose focus and its UI will no longer be visible or interactive.
When an application receives the sceneWillResignActive notification, it is an opportunity to perform necessary cleanup or
Applications can observe this notification using `NotificationCenter.default.addObserver`. When the notification is received, a designated method will