How to instantiate and load a view controller before segueing to it using swift
问题 I have an issue when I go from viewController A to viewController B, in which it has roughly a 5 second delay before segueing to it. I believe it is due to the amount of views that I'm loading up in viewDidLoad. I have an xib file that has a stack view of 11 sections that represent levels. Each section has a button and a few images that can change depending on the users progress. In addition, I instantiate 10 of these xib views to load in a scrollview. This all happens in the viewDidLoad. I'm