From 7429a42c26bef117bfa153cefbf85e336b70ca0f Mon Sep 17 00:00:00 2001 From: jonkykong Date: Sun, 28 Jul 2019 16:05:49 -0700 Subject: [PATCH] Fix for landscape mode menu tap to dismiss --- Pod/Classes/UISideMenuNavigationController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pod/Classes/UISideMenuNavigationController.swift b/Pod/Classes/UISideMenuNavigationController.swift index c454212..2fbc5c6 100644 --- a/Pod/Classes/UISideMenuNavigationController.swift +++ b/Pod/Classes/UISideMenuNavigationController.swift @@ -670,7 +670,7 @@ private extension UISideMenuNavigationController { } @objc func handleDismissMenuTap(_ tap: UITapGestureRecognizer) { - guard !view.bounds.contains(tap.location(in: view)) else { return } + guard view.window?.hitTest(tap.location(in: view), with: nil) == view.superview else { return } dismissMenu() }