Working with storyboards in Xcode, how to deal with massive storyboards in iOS

I use a storyboard to create an application, and there are currently many segments and several components. This causes a ton of lag when I try to do something inside the storyboard. Is there a way to hide the components inside the storyboard? thanks.

+4
source share
2 answers

+1 for potential opportunities to improve Xcode. Now you cannot hide these views (not what I know). But I would suggest you

  • Hide debug areas you don't need.
  • Hide the outline of a document while working with segues.

Why?

I think that whenever you make changes, the system does not need to redraw these unwanted views and the long outline of the document. It will probably be less laggy (I don’t think there is such a word)!


Work

Divide your segue into different meta segments, and then you can call these segues from your main segue. Thus, you do not need to install each connection in one file, but you condense it!

And here we go for the documentation! Now you can get the bulletin board from a different file, and then easily start with the UIViewController. Then you can simply use the old ways to iterate between different ViewControllers.

Apple Documentation for UIStoryboard

Demo application.

To achieve this, I made a quick demo application that will help any future visitors.

https://github.com/Krutarth/LargeStoryboardManagement


Visually something like this,

enter image description here

+1
source

You can break one huge storyboard into several small storyboards. Select the view controllers you want to move to a smaller storyboard, then

In the top menu, click "Editor" β†’ "Refactoring" to "Storyboard"

Save the new storyboard with the desired name. Xcode will automatically generate all the necessary storyboard links from your large storyboard to this newly created small one.

0
source

All Articles