romansorochak / ParallaxHeader

Simple way to add parallax header to UIScrollView/UITableView written in Swift.
MIT License
1.03k stars 131 forks source link

Incorrect height on iOS 11 #24

Open AlexandrPonomarev opened 6 years ago

AlexandrPonomarev commented 6 years ago

Hey. On iOS 11, the height of the parallax header is equal to the height that I set + the height of the navigation bar + the height of the status bar. On iPhone 8/8+ height = myHeight + 64, on the iPhone X height = myHeight + 88. On a lower version, iOS is all good. How can this problem be solved?

alissonbarauna commented 6 years ago

I'm having a similar problem on iOS10. The height is lower on iOS10, clipping my header by almost the half. :/ Can someone help us?

Ptbaileys commented 6 years ago

Try if #available(iOS 11.0, *) { self.tableView.contentInsetAdjustmentBehavior = .never }

pauloec commented 6 years ago

automaticallyAdjustsScrollViewInsets = false

Will do it for any scrollView you might have