title: How to get the navigation bar to show large title upon a segue back?
body: <p>I have a tab bar app where one of the views is a UITableViewController containing static cells as content with 1 section and 1 row. </p>
  
  <p><a href="https://i.stack.imgur.com/dufX4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dufX4.jpg" alt="Chat View"></a></p>
  
  <p>I want the Large Title to be set to "Always," so I made the selection on the storyboard and the title was large on the simulator. Now when the user taps "Start Chat," the app will segue to the Virtual Assistant View Controller, where the Large Title is set to "Never" on the storyboard. Now the problem is that when the user segues back to the previous view controller with the "Start Chat" table view cell, the title is not large anymore.</p>
  
  <p>It is interesting that when I set the table view to be scrollable, the title becomes large again upon dragging down the table view. I made sure the navigation bar on the Navigation Controller storyboard is checked with the "Prefers Large Titles." I am using Xcode 11, and this was not a problem when using Xcode 10.</p>
  
  <p>I tried creating a custom class for the view with the start chat button and this code did not work in making the title large from a segue back:</p>
  
  <pre><code>override func viewWillAppear(_ animated: Bool) {
      super.viewWillAppear(animated)
      navigationController?.navigationItem.largeTitleDisplayMode = .always
      navigationController?.navigationBar.prefersLargeTitles = true
  </code></pre>
  
  <p>What else could I do? Any help will be greatly appreciated!</p>