title: Attempt to present UINavController on SettingsView whose view is not in the window hierarchy?
body: <p>When I select the log out button it doesn't transition to the main menu as I get this error: <strong>Warning: Attempt to present  on  whose view is not in the window hierarchy!</strong></p>
  
  <p>The button does in fact work as the user is logged out, I am just unable to switch view controller due to the above error.</p>
  
  <p>Not sure what to do. I have read about some other people having similar problems but they all seem to be performing segues manually coded whereas I am not.</p>
  
  <p>This is my current storyboard setup: <img src="https://i.stack.imgur.com/dvRze.png" alt="enter image description here"></p>
  
  <p>Also not sure if related but a duplicate of the settings button appears at the bottom of the first view controller when running the app, despite not being there as seen in the screenshot.</p>