How to pre-load SKOverlay?

SKOverlay takes sometime to show up in the view because it has to fetch the app info from the server. So, is it possible to create SKOverlay beforehand and configure it to load the app info prior to calling present method?

Because, with the current system, the user may leave the screen we want to show the SKOverlay before it shows up.

Replies

It's not currently possible to preload an SKOverlay.

If a user switches to a new page before the overlay is presented, you can call SKOverlay.dismiss(in:) to cancel the presentation and avoid the overlay being shown in an unexpected location.