I'd like to present/show a ViewController
(let's call it ViewController2) that is somehow hidden (or have a 0 size) and, after some time, it'll be resized to a specific size (or fullscreen) meanwhile keeping the content of the ViewController
(let's call it ViewController1) presenting/showing it interactive.
Just to give some more context on why I want to do that.
I'm trying to load a WKWebView
in the background and, ideally, would like to present the ViewController
only when the webview is fully loaded. Unfortunately, iOS seems to "pause" javascript evaluation and its timers after a very short time when the webview is not presented to the user.
I can confirm code like setTimeout
stop working when the webview is attached to a ViewController which is not presented to the user and resumes working when that controller is presented/shown.
My idea here is, presenting the controller right away but somehow hidden (while keeping the app interactive) and when getting the right signal from the webview, I'd show/resize it to the user.