Skip to content

UserInteraction not restored on Center ViewController #20

@mrishi

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions