I have an onboarding class that uses UIPageViewController in a container view. The container view is smaller than the app's window to allow use of features behind the container view. This works very nicely in my previous use case.
But now I would like use the same onboarding class in an app that uses UISplitViewController. The container view needs to show regardless of the UISplitViewController's display mode.
In my previous implementations I would eventually eventually use
onboardingHandler.didMove(toParent: viewController)onboardingHandler is my UIPageViewController subclass and viewController is the parent.
In a UISplitViewController, which is the parent?
How can I reliably detect the parent so my onbaording is always on top?