UIPageViewController viewController subview animation on transition

Is there a way to animate the subtext of a UIPageViewController viewController subview on transition?

For example: I set up the UIPageViewController transition UIPageViewController for scrolling, horizontal navigation, and the location of the spine at the bottom of the screen.

Each viewController from the UIPageViewController has a label that I want to fade out or fade on transition.

Fade-in and fade-out on transition

Achieving an unanimated result is achieved by implementing the <UIPageViewControllerDelegate> protocol. Is it possible to animate the opacity of a label relative to gestures?

+4
source share
1 answer

Unfortunately, this is not so. The delegate does not provide any means to obtain a scroll position. You will need to run your own version of the UIPageViewController (for example, using UIScrollView and listen to scrollViewDidScroll: and other delegate methods)

+1
source

Source: https://habr.com/ru/post/1500281/


All Articles