Swift: Switch between NSViewController inside Container View / NSView
<p>I want to achieve a really simple task—changing the <code>ViewController</code> of a Container View by pressing a button:</p>

<p><a href="https://i.stack.imgur.com/j4e2W.png" rel="noreferrer"><img src="https://i.stack.imgur.com/j4e2W.png" alt="enter image description here"></a></p>

<p>In my example the <code>ViewController1</code> is embedded into the Container View using Interface Builder. By pressing the Button <code>ViewController2</code> I want to change the view to the second ViewController.</p>

<p>I’m confused because the Container View itself seems to be a <code>NSView</code> if I create an Outlet and as far as I know a NSView can’t contain a VC. Really appreciate your help!</p>