I'm using MFSideMenu
with swift. when I use following in viewWillAppear
,
menuContainerViewController.panMode = MFSideMenuPanModeDefault
it says unexpectedly found nil while unwrapping an Optional value
and app crashes. What can be the reason for this.