title: Set NavigationBar title on next ViewController without visual bugs
body: <p>So I have a <code>UICollectionView</code> called <code>WeatherVC</code> that has a <code>NavigationController</code>.</p>
  
  <p><code>WeatherVC</code> segues to <code>WeatherDetailVC</code> which is <code>UITableView</code> upon <code>UICollectionViewCell</code> selection.</p>
  
  <p>I want to set <code>WeatherDetailVC</code> NavigationBar title based on which <code>UICollectionViewCell</code> was selected.</p>
  
  <p>This code below makes my whole NavigationBar just buggy.
  Example: <a href="https://imgur.com/a/vOIbxK5" rel="nofollow noreferrer">https://imgur.com/a/vOIbxK5</a></p>
  
  <pre><code>override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
      if let vc = segue.destination as? WeatherDetailVC {
        let cities = ["City1", "City2", "City3", "City4"]
        // cellPressed = 3 - for example this would work without bugs
        vc.navigationItem.title = cities[cellPressed]
      }
  }
  </code></pre>
  
  <p>Variable <code>cellPressed</code> was set on cell highlight or tap. It behaves like this only in iOS 13 and only if I give it number based on cell tapped - if it is static, title changes with no visual bugs. I already tried creating functions inside <code>WeatherDetailVC</code> to change its title and calling them in <code>prepare for:segue</code> but it did not help whatsoever.</p>
  
  <p>EDIT: My main problem is those bugs or glitches that comes with this solution. I have no problem with changing next VC title.</p>