I am currently developing an iOS
project that is based in a Page View Controller
. Everything works fine, however, I would like to prevent the user to go beyond the limits of the pages.
In example, when the PageViewController
is positioned in the first page, if the user tries to go to the previous page (even thought there is no one) by dragging the Page View
to the left, the Root View Controller
appears until the drag is released, as you can see in the screenshot below.
Is there any way to block this gesture in the first and the last page of the Page View Controller
?