jonkykong/SideMenu

presentationStyle In Storyboard?

Closed this issue · 1 comments

I don't see presentationStyle in storyboard, so I tried to subclass and set it in viewDidLoad, but then navigation menu was broken. Can this be set in storyboard?


class SidebarViewController: SideMenuNavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        presentationStyle = .viewSlideOutMenuOut
        

    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}

Please follow the README carefully. You cannot set presentationStyle in storyboard.

Related: #627