fahidattique55 / FAPanels

FAPanels - Swift
Apache License 2.0
851 stars 90 forks source link

Memory Issue #70

Closed PrashantKT closed 5 years ago

PrashantKT commented 5 years ago

I have setup it like

              let panel = FAPanelController()
                panel.configs.panFromEdge = true
                panel.leftPanelPosition = .front

                let leftVC = LeftMenuVC.viewController()
                let centerVC = UINavigationController(rootViewController: DashboardVC.viewController())

                _ = panel.center(centerVC).left(leftVC)
                AppDelegate.sharedDelegate.window?.rootViewController = panel
                AppDelegate.sharedDelegate.window?.makeKeyAndVisible()

Now User press logout button Then I need to change root view controller again but it doesn't dealloc the FAPanel ?

Please help

PrashantKT commented 5 years ago

After setting root view controller to nil issue solved :)