2

I'm currently implementing a very simple TableViewController that has a navigation bar.

I have set the title, turned the navigation bar translucent = true , and turned PrefersLargeTitles = true

Large Title is set to Automatic on the Navigation Item

When scrolling in the table view, the title switches from large to small as I would expect, but there is a hiccup in the transition.

When I look at the native settings app on an iPhone, the transition is very smooth from large to small titles, and not here.

Is there some setting I am missing to animate / smooth this transition?

Thanks a lot

Logan
  • 1,172
  • 9
  • 23

1 Answers1

2

In your viewController set extendedLayoutIncludesOpaqueBars to true. Also set edgesForExtendedLayout = UIRectEdge.all

Alex Mason
  • 385
  • 1
  • 5
  • 11
  • I tried this originally as it's what Apple suggests doing. However, this doesn't work when you have UITableView inside of a UIViewController – Logan Jan 24 '19 at 16:44
  • 1
    I also added `edgesForExtendedLayout = UIRectEdge.all` and it worked for my tableView in a UIViewController (all done programmatically). Were you able to get it to work at any point? – Alex Mason Jan 24 '19 at 19:29