Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 11 issues with Refresh Controller and navigationBar that has prefersLargeTitles set to true

I am using a navigation controller and within that navigation controller, I have a VC with a tableview that is hugging the top, bottom, left and right sides of the superView. When I have self.navigationController?.navigationBar.prefersLargeTitles set to false, everything works fine. But when I set it to true, I have to drag really really far down to get my refresh controller to trigger the refresh.

This is fixed by simply tapping one cell which then goes into the detail view and then pressing the back button from the detail view to go back to the vc with the main tableview and refresher. After doing that the pull to refresh works perfectly with the large titles. Very weird!

I have a very basic setup of my tableview. My actual project has a more complex setup but in order to isolate this problem, I created a much simpler project with the same tableview and the issue persisted. Has anybody else seen this issue? I am thinking it is an issue on apple's end but I wanted to check if I was doing something wrong on my end.

I am using swift 4 and iOS 11.0.2 with Xcode 9.

The animator starts to animate but when it gets a certain (the point where it should refresh), it just stops. When I keep on pulling down further and further, it does the refresh. But it should have done it much earlier. I have to pull down to the point where the nav bar stretches to almost the entire length of the screen. See the screenshot. enter image description here

like image 859
Nevin Avatar asked Oct 29 '22 01:10

Nevin


1 Answers

you can try to set self.extendedLayoutIncludesOpaqueBars = YES;

like image 187
day Avatar answered Nov 14 '22 22:11

day