           self.view.layoutIfNeeded()
           self.setNeedsStatusBarAppearanceUpdate()
     }
-
     UIView.animateWithDuration(0.3, animations: animation)
   }
 }

  var browser:BraveBrowserViewController
  var mainSidePanel:MainSidePanelViewController
  var leftSlideOutShowing = false

  init(browser:BraveBrowserViewController) {
    self.browser = browser

  func toggleLeftPanel() {
    leftSlideOutShowing = !leftSlideOutShowing
    mainSidePanel.showAndSetDelegate(leftSlideOutShowing, delegate:self)

    if UIDevice.currentDevice().userInterfaceIdiom == .Phone {
      if leftSlideOutShowing {
        view.addSubview(clickDetectionView)
        clickDetectionView.snp_remakeConstraints {
          make in
          make.edges.equalTo(browser.view)
        }
      } else {
        clickDetectionView.removeFromSuperview()
      }
    }
    
    let width = leftSlideOutShowing ? 300 : 0
    let animation = {
          self.mainSidePanel.view.snp_remakeConstraints {
