You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
guard let result = super.hitTest(point, with: event) else { return nil }
// if the menu is displayed, let `hitTest` behave as it usually would. if the menu isn't displayed, we'll go on to passing through touches not on the debugging button
guard !menuDisplayed else { return result }
// if the button was not tapped, return `nil` to continue reaching down
// the hierarchy to the app window
if !result.isKind(of: UIButton.self) {
return nil
}
// otherwise, return the button so it can respond to taps/gestures