2 // MainViewController.swift
5 // Created by Pawel Dabrowski on 18/06/2018.
6 // Copyright © 2018 Fundacja Nowoczesna Polska. All rights reserved.
12 class MainViewController: WLViewController{
14 var leftBarButtonItemShouldOpenMenu = true
16 override func viewDidLoad() {
19 if leftBarButtonItemShouldOpenMenu {
20 navigationItem.leftBarButtonItem = UIBarButtonItem(image: #imageLiteral(resourceName: "navbar_menu"), style: .plain, target: self, action: #selector(presentMenu))
25 print("deinit \(self)")
28 @objc func presentMenu() {
29 present(SideMenuManager.default.menuLeftNavigationController!, animated: true, completion: nil)