From ee0a28af27f4fa5faefc5e49c42166b76de35701 Mon Sep 17 00:00:00 2001 From: longitachi Date: Tue, 2 Jul 2024 20:17:23 +0800 Subject: [PATCH] Delay system gesture responses on the cropping interface to avoid gesture conflicts --- Sources/Edit/ZLClipImageViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Edit/ZLClipImageViewController.swift b/Sources/Edit/ZLClipImageViewController.swift index d087ecb0..e6bb3332 100644 --- a/Sources/Edit/ZLClipImageViewController.swift +++ b/Sources/Edit/ZLClipImageViewController.swift @@ -228,6 +228,9 @@ class ZLClipImageViewController: UIViewController { override var prefersHomeIndicatorAutoHidden: Bool { true } + /// 延缓屏幕上下方通知栏弹出,避免手势冲突 + override var preferredScreenEdgesDeferringSystemGestures: UIRectEdge { [.top, .bottom] } + override var supportedInterfaceOrientations: UIInterfaceOrientationMask { deviceIsiPhone() ? .portrait : .all }