I have a tab-based application, and I want to reuse the same view layout for two of the tabs.
The views share the same UIViewController subclass, but it seems they can't share the same scene/layout in my storyboard. I can't put two tab items in one scene/view.
The way I have "solved" it is by simple adding another view, copy-paste the layout from the original view, and connect a segue for the new tab item. Then in the viewWillAppear
method I make sure to display different contents depending on which tab is selected. But this is a hassle if I want to change something in layout of the original view.
Is there a more elegant way of achieving this using Storyboards, or do I have to resort to creating the views programmatically?