I am using left side menu from this pod https://github.com/jonkykong/SideMenu. here I have given storyboard side menu button to UISideMenuNavigationController Present Modually Segue and side menu is working fine but my issue is, if I click(open) side menu button then I have changed background view colour which is not changing to its original colour when I close side menu.
like below mentioned answer if i change my code:
import UIKit
import SwiftKeychainWrapper
import SideMenu
class ProfileViewController: UIViewController, UITextFieldDelegate {
override func viewDidLoad() {
super.viewDidLoad()
}
@IBAction func sideMenubtn(_ sender: Any) {
view?.backgroundColor = UIColor(white: 1, alpha: 0.9)
}
}
extension ProfileViewController : SideMenuNavigationControllerDelegate
{
func sideMenuWillDisappear(menu: SideMenuNavigationController, animated: Bool) {
view?.backgroundColor = UIColor.white
}
}
i got this error:
Use of undeclared type 'SideMenuNavigationControllerDelegate'
Use of undeclared type 'SideMenuNavigationController'
how do I remove this colour when I close the side menu, please help me.