I am creating a macOS application using the storyboard. I have 2 views controllers and I would like to change the view using a button located in sidebar. I control and drag line from button to second view controller. In the pop up I select show.
The issue that I have when I click the button in the sidebar it opens a completely new window.
Is there a way that I can replace the first view controller with the second view controller when I click button
I attached video of issue video of issue