maxep / MXParallaxHeader

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

Issue with sticking to minimumHeight #59

Closed ivanbarisic05 closed 5 years ago

ivanbarisic05 commented 7 years ago

Hi there, thanks for your great lib. I have an issue where I try to disable MXParallaxHeader to stick to minimumHeight. It's like this, header is full screen image and when I scroll it down I get "stuck" on minimumHeight. Can you help me to avoid this kind of behaviour?

This is my implementation:

scrollView.parallaxHeader.view = header scrollView.parallaxHeader.minimumHeight = 0 scrollView.parallaxHeader.height = UIScreen.main.bounds.height scrollView.parallaxHeader.mode = MXParallaxHeaderMode.center scrollView.parallaxHeader.delegate = self

maxep commented 7 years ago

Hi, I'm sorry, I'm not sure to understand your issue. By setting scrollView.parallaxHeader.minimumHeight = 0 the header do not desappear when you scroll up ? What is you scrollview's content insets?

ibarisic05 commented 7 years ago

Hi @maxep, thanks for reply. I had issue when i set configuration like described on collection view. Problem was when I start scrolling up, screen stops when parallax header reaches offset that should get him outside the screen. Any way, I have solved this by creating my custom solution for the header. Thanks

timotheeduran commented 7 years ago

Hi, I have the same issue, anyone knows how to fix it ? :)

axmav commented 7 years ago

+1

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.