Skip to content

UserInteraction not restored on Center ViewController #20

Description

@mrishi

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) :)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions