EzPopup icon indicating copy to clipboard operation
EzPopup copied to clipboard

iOS 14 canTapOutsideToDismiss not working

Open 1234Karthick opened this issue 4 years ago • 1 comments

iOS 14 canTapOutsideToDismiss not working because of hierarchy change. Please check.

// MARK: - UIGestureRecognizerDelegate extension PopupViewController: UIGestureRecognizerDelegate { public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool { guard let touchView = touch.view, canTapOutsideToDismiss else { return false } if containerView.bounds.contains(touch.location(in: containerView)) { return false } return !touchView.isDescendant(of: containerView) } }

This code will fix that issue, you can update project if you need.

1234Karthick avatar Dec 16 '20 08:12 1234Karthick

Sorry but I can't reproduce the issues. Can you please tell me more details?

huynguyencong avatar May 24 '21 07:05 huynguyencong