marcosgriselli / SwipeableTabBarController

UITabBarController with swipe interaction between its tabs.
MIT License
1.54k stars 107 forks source link

how can i stop swipe control for specific viewcontroller #87

Closed arslan111222 closed 4 years ago

arslan111222 commented 4 years ago

Your issue may already be reported! Please search on the issue track before creating one.

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Environment

arslan111222 commented 4 years ago

i am working on chat as i move to chat box i dont need to swipe between controller until or unless i pop my chat box is there any possibility to stop swipe at that point.

marcosgriselli commented 4 years ago

@arslan111222 you'll need to call setTabBarSwipe(enabled: false) from the ViewController that you don't want to have swipe enabled.

You can do this in viewDidAppear and re-enable it on viewDidDisappear.