title: Swift making an IBDesignable master container view?
body: <p>I am writing an app where I've identified that a single page is used multiple times throughout the app; and I want to use a single UIViewController for this.</p>
  
  <p>Currently I have a UIStoryboard layout;</p>
  
  <p>Storyboard:</p>
  
  <p><code>PageA -&gt; PageB -&gt; PageC</code></p>
  
  <p>I know that both PageA and PageC are using the same <code>FactoryListViewController</code> (any variants are handled in a viewmodel)</p>
  
  <p>This page represents a list of <code>factories</code>; has the following components</p>
  
  <p>FactoryListViewController:</p>
  
  <ul>
  <li><p>Child ViewController: <code>HUDViewController</code> (Has a collection view and some buttons)</p></li>
  <li><p>CollectionView (My list of factories) </p></li>
  </ul>
  
  <p>Knowing this, I want to create a common UIViewController where the child view controllers are <code>IBDesignable</code> </p>
  
  <p>but I'm confused as to how to do this because as I understand it, <code>IBDesignable</code> is only for UIViews and XIBs, not UIViewController.</p>
  
  <p>My query is this -- how do I make a MasterViewController which itself has ViewControllers and make them IBDesignable?</p>
  
  <p>With thanks</p>