SideMenu icon indicating copy to clipboard operation
SideMenu copied to clipboard

IOS crash when set sidemenu as rootviewcontroller

Open hafiz013 opened this issue 5 years ago • 1 comments

when i set sidemenu as rootview controller it is crash. Below here my sample code:

let mainScreen = storyboard.instantiateViewController(withIdentifier: "SideMenu") as! SideMenuController
                let homeNavigationController = UINavigationController(rootViewController: mainScreen)
                self.window?.rootViewController = homeNavigationController
                self.window?.makeKeyAndVisible()`

log cat errror:

menuViewController.beginAppearanceTransition(true, animated: true). <-- Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value

Why?

hafiz013 avatar Apr 30 '20 05:04 hafiz013

@hafiz013 Can you provide functional code for reproducing this issue?

kukushi avatar May 25 '20 16:05 kukushi