EzPopup
EzPopup copied to clipboard
iOS 14 canTapOutsideToDismiss not working
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.
Sorry but I can't reproduce the issues. Can you please tell me more details?