Reputation: 368
My current application has only one story board file with ~100 view controllers. It takes ~10 minutes to load and ~1 minute to build. Will breaking the one storyboard file I currently have into ~20 storyboard files provide me with much, much quicker load and build times? Note: In the future, the application I am working on may reach over ~100 storyboard files with ~10 view controllers per file. Would this be a reasonable long term solution to this problem? I would like to get the build time down to ~15 seconds instead of several minutes.
Upvotes: 1
Views: 481
Reputation: 535306
Making a storyboard smaller and simpler will definitely make it much faster to open it thru Interface Builder in the Xcode editor.
Moreover, make inferences your Main storyboard smaller and simpler will greatly decrease the launch time and initial memory footprint of your actual app.
However, many other factors influence build times. Xcode now lets you profile your build process, so take advantage of that feature. WWDC 2018 includes an extensive video on the topic of build times.
Upvotes: 0
Reputation: 3148
We applied multiple storyboards approach instead of one storyboard approach and got a better result in time and teamwork.
Try to reuse your layouts by creating nib files.
Also, think about breaking your project to multiple projects/modules if possible. Try to code as modular as possible so you will have:
Upvotes: 1