I wrote an iOS-App that uses multiple Views. Since I did not want to use the storyboard, I created a set of Views (xib files) and corresponding ViewControllers (swift files that extend UIViewController).
The views are created with all "Simulation Metrics" set to inferred, "Use Auto Layout" is on and "Use Size Classes" is also on. For every element, constraints are set, no errors.
In func application(application: UIApplication, didFinishLaunchingWithOptions ...)
in AppDelegate.swift, I initiate my ViewControllers, e.g. by
connectVC = ConnectViewController(nibName: "ConnectView", bundle: nil)
On user actions (e.g. button click) and network actions (e.g. game started), I switch views programmatically with an animation by changing the window.rootViewController in AppDelegate.swift, exactly like here but in Swift.
So far, so good. But whenever I show a view for the first time, the view appears with the scaling/size just like in my Xcode interface builder, then resizes about half a second to a second later to the correct size of device's screen. This happens in the iOS Simulator as well as on my real iPhone.
The views use quite a few images in UIImageViews, but reducing the resolution or amount of pictures does not change that behaviour.
I would like to speed up that resize, ideally the users should not see any resizing of elements in my view. How can I do that?