Pageboy icon indicating copy to clipboard operation
Pageboy copied to clipboard

Scrolling animations like parallax scrolling

Open blurtime opened this issue 6 years ago • 3 comments

First of all, thank you for this awesome pod! It's not really a huge issue, much rather a small suggestion but maybe one could add scrolling animations to Pageboy like parallax scrolling or even fading. Especially parallax scrolling makes lots of PageViewControllers look a lot smoother. This pod (AnimatedCollectionViewLayout) demonstrates a couple of animations. I tried to add parallax scrolling on my own. Unfortunately, I couldn't make it work. I only managed to add it to my normal UIPageViewController but I'd like to stick with Pageboy. Therefore, if you should have some time left, you could maybe add this at some point. I'm sure many others would be grateful as well. Looking forward to Pageboy 3!

blurtime avatar Sep 08 '18 13:09 blurtime

@blurtime sounds great! Did you say you managed to implement it on a regular UIPageViewController? Would be interesting to see how, and would certainly help as Pageboy uses this under the hood 😄

msaps avatar Sep 12 '18 07:09 msaps

Hi @msaps I'm happy you like the idea! Unfortunately, I didn't create a backup of the file I got it to work with. The same day I deleted the file I later realized that Pageboy uses it under the hood when I debugged the view hierarchy for another reason. None of my previous backups contain the file either... :( I can only vaguely (I still was a bloody newcomer when I did it) remember that I couldn't find anything on "UIPageViewControllers and parallax scrolling" and therefore watched some tutorials on how to add parallax scrolling to uiscrollviews and managed to apply this to my UIPageViewController. I'm sorry

blurtime avatar Sep 15 '18 10:09 blurtime

This looks very interesting. I tried to implement it but didn't manage to do it: https://github.com/alkhokhlov/SwiftyPageController/blob/master/SwiftyPageController/Classes/SwiftyPageControllerAnimatorParallax.swift

blurtime avatar Jul 30 '19 16:07 blurtime