-
-
Notifications
You must be signed in to change notification settings - Fork 696
Open
Labels
Description
Eventhough i have already setup the side menu it says that it could not instantiate LeftMenuNavigationController from storyboard
fileprivate func setupSideMenu() {
// Try to instantiate the SideMenu controller safely
guard let menu = storyboard!.instantiateViewController(withIdentifier: "LeftMenuNavigationController") as? SideMenuNavigationController else {
print("❌ Could not instantiate LeftMenuNavigationController from storyboard")
return
}
// Configure presentation
menu.presentationStyle = .viewSlideOutMenuIn // replaces .menuPresentMode
menu.statusBarEndAlpha = 1 // replaces .menuFadeStatusBar
menu.leftSide = true
// Assign to SideMenuManager
SideMenuManager.default.leftMenuNavigationController = menu
// Add gestures using new API
if let navigationBar = self.navigationController?.navigationBar {
SideMenuManager.default.addPanGestureToPresent(toView: navigationBar)
}
SideMenuManager.default.addScreenEdgePanGesturesToPresent(toView: self.view)