iOS - sceneWillResignActive called twice when pulling the status bar to see notification center

357 Views Asked by At

I'm trying out iOS app states, and I came into a wired behavior when using sceneWillResignActive function inside SecenDelegate, this function works normally when I put the app in the background or when opening ControlCenter, but when I pull the status bar the function called twice

What is the cause of the behavior?

Here some debug info:

------------- sceneWillResignActive ------------
----------- sceneDidBecomeActive -----------
------------- sceneWillResignActive ------------

The log shows that the scene resign active and then became active and then resign active again in one pull

0

There are 0 best solutions below