
You can identify a screen and its elements.When the number of screens in your app grows, you can use multiple storyboards to break the navigation into discrete parts. You can divide complex navigation flows into manageable sub-flows.Even if you are new to a project that uses storyboards, you can immediately find where navigation starts and follow it to any screen. This is an easy one since this is the purpose of storyboards. Storyboards make it easy to visualize the UI flow of an app.If you think something is missing, let me know. I have researched many articles and came up with as many points as I could.

Since this might look like speculation on my part, let’s see in more detail at the benefits of storyboards. The various benefits of using storyboards in your Xcode projects Some of them might have a good reason, but in general, I think that most are wasting more time than they are saving. So I don’t buy it when developers avoid storyboards. What’s the point of having something like storyboards if using them is equal to not using them? *cough* Especially since Apple does not seem to put much effort in Xcode, to begin with. Think about it: would Apple put a lot of effort into developing and promoting tools that have no apparent benefits? It makes no sense. While I see many benefits, the few problems storyboards create do not seem to me to be enough to eschew them all together. I have researched at length the pros and cons of using storyboards. Mostly though, the excuse I hear is “I am used to doing it this way.” There might sometimes be reasons for doing so. That is why I am surprised when I find iOS developers that still insist on having all the UI in code.

Alternative to storyboard quick code#
But a big part of the code base was UI code, which made the code grow larger than it should have been. The main reason was that everything was written in code, including the user interface.Įven when I had to fix simple bugs, it took me hours to locate the correct code to change.
Alternative to storyboard quick how to#
In my opinion, they are just making their life harder than it should be.Ī couple of years ago I worked on a big project for a client together with a 20+ people team.Īfter four months, I still did not know how to move around their code base. Some iOS developers seem to be opposed to storyboard. Architecting SwiftUI apps with MVC and MVVM GET THE FREE BOOK NOW It does not make sense to have storyboards in Xcode if they are not usefulĪ storyboard outlines the different screens of an app the relationships between them like it happens in storyboards for movies.
