maxep / MXParallaxHeader

Simple parallax header for UIScrollView
MIT License
1.73k stars 251 forks source link

iOS 11 glitch with MXScrollViewController #82

Closed Aurazion closed 5 years ago

Aurazion commented 7 years ago

Hi, When I build my project with Xcode 9 / iOS11, a glitch appear when I scroll it. The same with Xcode 8 / iOS10 works great. This issue occur whith MXScrollViewController.

With the MXScrollViewController demo, there is also a problem with the UIWebView when you scroll to top. Could you check please ?

Don't hesitate to contact me.

Thanks!

Aurazion commented 7 years ago

The problem occur when I scroll down and then scroll to top (see the screenshot attached).

Thanks @maxep

ios11

Nexmind commented 7 years ago

There are a similar problem with parallax header using tableview.

For tableview, there are a new property contentInsetAdjustmentBehavior that you can put to .neverand it solve the problem.

Maybe you can check if there are something similar for scrollview. It should be exist.

Something like that scrollview.contentInsetAdjustmentBehavior = .never

Aurazion commented 7 years ago

I will try this and keep you informed, thanks @Nexmind !

Aurazion commented 7 years ago

@Nexmind It solve my problem thanks ! But now I've a "padding" on the top of the scrollview ? Did you know how I can delete it ? Thanks !

ios11_2

Nexmind commented 7 years ago

I had similar issue on iPhone X only with some tableview in my app. I have no real solution for the moment. What i made as quick win option is to substract padding height in my top constraint if the phone was an iPhone X.

if DeviceType.IS_IPHONE_X {
       self.cstTopTableView.constant = self.cstTopTableView.constant - 25
}
Aurazion commented 7 years ago

Ok it's just a problem with my constraints ... It now works great ! Thanks again @Nexmind ! I will try your solution for the iPhone X :-)

maxep commented 7 years ago

Thanks @Aurazion and @Nexmind I'm struggling with this new content inset adjusment behavior... @Aurazion have you try to uncheck the content inset adjustment of your view controller?

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.