SKOverlay did not disappear normally after calling the dismiss method

After the 'present' method is called in SKOverlay, the system will first load the SKOverlay and do the present animation after loading is complete. However, the user may leave the page during the loading process. At this time, we will call the 'dismiss' method (at this time, SKO may not have appeared, or SKO may be doing the appearance animation). According to my online statistics, there are some situations. a. SKO did not display (this is as expected) b. SKO suddenly appeared quickly and then disappeared after leaving the page for a while c. SKO displayed after leaving the page and did not disappear automatically. Do we have a way to completely solve problems b and c? Why can't dismissOverlayInScene completely stop the previous SKO's present task now? I would greatly appreciate it if I could get more information here to deal with this problem.

Your assumptions about the expected behavior are correct here.

Calling dismiss(in:) before an SKOverlay is presented should prevent the overlay from appearing unless the animation is already in progress, in which case it will finish the animation before dismissing right away.

If you're able to reproduce the issue, please submit feedback including a sysdiagnose at https://feedbackassistant.apple.com

SKOverlay did not disappear normally after calling the dismiss method
 
 
Q