iDevelopper / PBRevealViewController

A UIViewController subclass for revealing a left and/or right view controller above or below a main view controller.
MIT License
80 stars 16 forks source link

Swift - I am able to tap navigationbar items, buttons, scroll tableview when left menu is activated. How to disable it globally ? #29

Closed tariq235 closed 7 years ago

iDevelopper commented 7 years ago
    // MARK: - PBRevealViewController delegate

    func revealController(_ revealController: PBRevealViewController!, willShowLeftViewController controller: UIViewController!)
    {
        revealController.mainViewController.view.isUserInteractionEnabled = false
    }

    func revealController(_ revealController: PBRevealViewController!, willHideLeftViewController controller: UIViewController!)
    {
        revealController.mainViewController.view.isUserInteractionEnabled = true
    }
tariq235 commented 7 years ago

Thanks