Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserInteraction not restored on Center ViewController #20

Open
mrishi opened this issue Feb 21, 2016 · 0 comments
Open

UserInteraction not restored on Center ViewController #20

mrishi opened this issue Feb 21, 2016 · 0 comments

Comments

@mrishi
Copy link

mrishi commented Feb 21, 2016

Hello,

Nice Library!

Facing a bug while updating the Center ViewController. Steps to reproduce :

  1. Set Left Drawer and Center VC 1.
  2. Open Left Drawer and set VC 2 as Center VC
  3. Without opening the drawer, set VC1 as the Center VC.
    Issue - User-Interaction is disabled on VC1.

Pls. help.

Cheers,


Update : I have currently fixed this by the following modifications :
func replaceViewController(sourceViewController: UIViewController?, destinationViewController: UIViewController, container: UIView) {
* if destinationViewController.view.userInteractionEnabled == false {
destinationViewController.view.userInteractionEnabled = true
}
*

( Not sure if it's the best solution) :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants