This is the state that isn't handled correctly. This is after double-pressing the home button. You can't see it in the screen shot, but in this state, the app is still running, that is, the "life" algorithm is still running and continuously updating the screen. The sceneWillResignActive method was called, but sceneDidEnterBackground was not. At this point, that is all still OK, since the app is still active.
But if I swipe the app upward at this point, sceneDidEnterBackground is still not getting called, and I don't understand why. In an older app of mine, where the lifecycle is managed using the AppDelegate methods, applicationDidEnterBackground is called when swiping up. And also note: if I single-press the home button while in the app, it is placed in the background, and the sceneWillResignActive and sceneDidEnterBackground are both called, as expected.
(Sorry, there's supposed to be a screen shot here, but that doesn't seem to work...)
[object Object]
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: