I can not get UIPageViewController to work in combination with Safe Area as I would expect it to do.
What I am doing is I pin a subview of a UIPageViewControllers child view controller (e.g. childVc1
) to the safe area (childVc1.view.safeAreaLayoutGuide
).
This works fine until I switch orientation from portrait to landscape, swipe to the next child view controller, rotate back to portrait and go back to the previous child view controller. Then the view of the previous child view controller is only updated after the scrolling has finished, which looks pretty strange.
Here's a demo using the Page-Based App-Template provided by Xcode (modified so that the content view is pinned to safe area). It does not have the best fps but it should be clear, e.g. the month name changes position after scrolling has finished.
Did someone encounter similar problems and found a way how to properly fix this?
Thanks