KyleGoddard / KGFloatingDrawer

A floating navigation drawer with an interesting animated presentation written in Swift.
MIT License
499 stars 79 forks source link

UserInteraction not restored on Center ViewController #20

Open mrishi opened 8 years ago

mrishi commented 8 years ago

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