IOS Storyboarding - hands-on experience: multiple developers?

Storyboards seem like an elegant way to work with multiple view controllers in iOS and transitions between them.

However, I have avoided using them so far without worrying about what happens when several developers make changes to the view controllers in the same storyboard file and possible resulting merge conflicts.

Has anyone had a lot of practical experience in this, in production applications of medium complexity?

What is your assessment of a storyboard ready for prime time in this regard? Or is it better suited for individual developers or small development teams?

(What about workarounds, such as an β€œoutline” in multiple storyboard files?)

opinions?

Thanks!

+6
source share
2 answers

A bit of background:

My five-person team, four developers and QA, just finished a rather large project (50k + lines of code), which used a significant amount of Storyboarding. We have at least 10 different storyboards, many of which are at level 5 or 6 in the navigation structure.

In addition, we rely heavily on version control through Perforce, with dozens of checks per day.

My experience:

I never had to even think about dealing with the solution to any of our storyboards. They do great version control for two main reasons. Firstly, if you open one of them, you will see that it has well-structured XML that works well with the version. Secondly, with storyboards, you always want the layout of the entire user interface structure before any details or code are added (which is the whole point). This is very suitable for solving a team command, simply because each member can then take a separate ViewController and implement it, while remaining isolated from the rest of the team’s efforts.

However, I would recommend making some "shards", because you can easily get a giant nest of compounds with rats.

Finally:

If you look a little on the Internet, you will find many negative answers to Storyboarding, because it can get "dirty" to transfer data one at a time from one species to another. However, if you fall into this situation, you have already violated the basic principles of MVC. You should not use your views to store and manage data. At first it is tempting and easy, but in the end you will run into problems, as your project goes beyond the basics.

+9
source

Merging conflicts still remains a big problem that Apple has not yet resolved (including in Xcode 4.6). Sometimes just viewing the contents of the storyboard causes it to become modified. The modifications seem to be harmless internal work of knives, but if 2 people view the storyboard without making changes, save the file and then commit, you can see conflicts that you don’t understand how to merge. I filed an error for this some time ago, and it is marked as a duplicate of a known problem.

See also these questions that support this:

Storyboards and Conflicts SVN

http://robsprogramknowledge.blogspot.com/2012/01/uistoryboard-best-practices.html

Xcode modifies unmodified storyboard and XIB files

+4
source

Source: https://habr.com/ru/post/920285/


All Articles