I want to re-organise our storyboards. We have about 25 small storyboards and about 5 big ones. The big ones are too large (it affects performance when working in xCode). The small ones sometimes contain only a scene or two. I wonder if there is a recommended story board size for best performance, so that I could use it as a guideline when deciding on how to manage the storyboards. Is there a documentation about it? Did anyone experiment with different storyboard sizes and measured performance impact?
Using storyboards has it's benefits, and if you want to keep using storyboards there is no reason you should be worried about performance impact of having many storyboards even a storyboard for each ViewController
named after the ViewController
.
Keep in mind that big storyboards take ages to load in the Xcode preview because it renders the whole storyboard file; however, when loading a screen in the app, it would not be loading the whole file just parsing the correct view controller and render only that. Knowing that, you should not see any performance problems from a bigger storyboard in your app.
The general practice shows that it's not good for you as developer to use big storyboards due to merge conflicts, especially if multiple developers are working on the same storyboard file.
If your layout is simple enough it might be worth doing everything in code.