Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 11: Pop view controller with scrollView inside navigation controller with opaque navbar result in weird content animation during transition

Tags:

ios

ios11

Pop view controller with scrollView inside navigation controller with opaque navbar result in weird content animation during transition

The content will be somewhere below its original position during transition, and interactive pop will make this very obvious.

Enabling Safe area does not fix this.

like image 408
sbhhbs Avatar asked Sep 25 '17 03:09

sbhhbs


1 Answers

It is a bug in iOS 11 I believe. Here's a rdar about it: http://openradar.appspot.com/34465226

You can walk around this issue by check the Extend Edges: Under Opaque Bars box in storyboard or set [self setExtendedLayoutIncludesOpaqueBars:YES] manually in code.

like image 154
sbhhbs Avatar answered Oct 19 '22 04:10

sbhhbs