I have a container view that contains the view of a UIPageViewController
. This is inside a UIViewController
and takes up the whole screen. On top of the container view I have a UIView
, covering half the screen, which contains a button and some text. I want to forward the touches from this UIView
to the UIPageViewController
. This is so that the UIPageViewController
can still be swiped left/right even if the user is swiping over the UIView
. I also want the button to be able to be pressed, therefore can't just set isUserInteractionEnabled to false on the UIView
.
How can I do this?