Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Dynamic enable/disable swiping to left/right viewControllers. #143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Dynamic enable/disable swiping to left/right viewControllers. #143

wants to merge 1 commit into from

Conversation

caoimghgin
Copy link

If a frontViewController is rootViewController of a UINavigationController and it has pushed another viewController - the user may wish to deny that visible viewController swipe access to the leftViewController but allow swipe to the rightViewController, or vice versa. User can set the recognizesPanningLeftOnFrontView to NO or recognizesPanningRightOnFrontView to NO to block swipe gestures from revealing left/right viewControllers. Of course the user will be obligated to set the properties back to YES when that viewController is popped off the navigation stack.

…his is handy if a frontViewController is rootViewController of a UINavigationController and it has pushed another viewController - the user may wish to deny that viewController swipe access to the leftViewController but allow swipe to the rightViewController, or vice versa.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant