Search code examples
iosswiftuinavigationbarios11

iOS 11 prefersLargeTitles Weird Transition


So I'm having a weird issue with the new large titles in iOS 11. Instead of me trying to badly and confusingly explain the issue here is a 10-second screen recording of what is happening:

Screen recording of issue on YouTube

As you can see there is a weird black bar that appears when transitioning between a view controller that has

navigationItem.largeTitleDisplayMode = .never

And one that is set to .always

Thanks in advance!


Solution

  • Before the transition set this:

    self.navigationController?.view.backgroundColor = .white