title: Swift IOS keep view controller running in background after pop
body: <p>My app consists of two views. The first one is a <code>GMSMapView</code> and the second one is used to connect to a Bluetooth device that sends coordinates. </p>
  
  <p>After the Bluetooth device is connected, I use a delegate to send the information back to the map view and move a marker around. To transition between views I was previously using segues, this didn't stop the Bluetooth view controller and the data made its way like I wished to the map view.</p>
  
  <p>I ran into the problem of my map view being reinitiated so I decided to use a navigation controller. Now I use a push segue to get to my second view, and pop to come back to the same instance of the first one. Great, that worked! The issue I have now is that popping the second view seems to stop it completely from running in the background like it used to. Is there a way to keep it running in the background like it did before?</p>
  
  <p>What I'm currently using to pop the second view is </p>
  
  <pre><code>self.navigationController?.popViewControllerAnimated(true)
  </code></pre>
  
  <p>Any idea would be appreciated! Thanks!</p>