title: ViewController still stays after unwind segue
body: <p>So I have multiple controllers, lets call them A, B and C. </p>
  
  <p>When I go to A, and select an Item in the tableview, I get transported to B where I can edit the items and save. Now, when I press save, I have an unwind segue which takes me to C, the home page. </p>
  
  <p>However, when I go to A again, the view is still stuck on B and I have to press the tabBarItem again which I used to come to A again, to go back to A. Why does this happen, I just want A to appear again and B to dissapear as soon as I press save. </p>
  
  <p>I have tried code such as: </p>
  
  <pre><code>self.presentingViewController?.dismiss(animated: false, completion:nil)
  self.dismiss(animated: false, completion: nil)
  </code></pre>
  
  <p>in both the segue and the save button code, but nothing seems to happen. </p>
  
  <p>Ok, here is more context as requested:</p>
  
  <p>So this is ViewController A:</p>
  
  <p><a href="https://i.stack.imgur.com/oC9ng.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oC9ng.png" alt="enter image description here"></a></p>
  
  <p>and this is viewController  B:</p>
  
  <p><a href="https://i.stack.imgur.com/MF35c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MF35c.png" alt="enter image description here"></a></p>
  
  <p>so when I press save, it transports me to viewcontroller C: which is this
  and this is viewcontrollerC:</p>
  
  <p><a href="https://i.stack.imgur.com/6gvU5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6gvU5.png" alt="enter image description here"></a></p>
  
  <p>and then, using the tab bar, when I go back to viewcontroller a, I get greeted with this:</p>
  
  <p><a href="https://i.stack.imgur.com/kiPAh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kiPAh.png" alt="enter image description here"></a></p>
  
  <p>as you can see, the tabbar is on the third option but I am getting greeted with viewcontroller B and then, I have to click on the third option again(the one titled collection) to go back to viewcontroller A. </p>
  
  <p>Hope that makes things clearer, please do let me know if any code is needed. </p>