handsomecode / InteractiveSideMenu

iOS Interactive Side Menu written in Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MenuViewController Declaration in ViewDidLoad Causing an Error

KevinMaldjian opened this issue · comments

I have copied the code from the HostViewController implementation section into my file that belongs to the HostViewController but I was immediately greeted with this error:

"Cannot assign value of type 'MenuViewController' to type 'MenuViewController!'"

This error is from line
menuViewController = self.storyboard!.instantiateViewController(withIdentifier: "NavigationMenu") as! MenuViewController