What is refactoring storyboards?

marinah aka. Codable
1 min readFeb 17, 2019

--

In case of multiple developers there is a feature that splits the storyboards scenes to avoid merge conflict. (Select Editor\Refactor to Storyboard and enter NewStoryboard.storyboard as the name of the new storyboard. Set the Group to NewStoryboard.story & Save.

Xcode does the following:

Splits out the selected scenes into a new storyboard and creates new storyboard. — For a supposedly diff-friendly format, sort of noise xcode creates just complicates the commit process. Sure revert these changes before committing the code again but you shouldn’t have to.

Example of reference and separated storyboard.

To maintain backward compatibility with iOS 8 you cannot use storyboard references. Here are some best practices on Auto Layout:

https://medium.com/@NSomar/auto-layout-best-practices-for-minimum-pain-c130b2b1a0f6

--

--

No responses yet