From e554dcd92d455f9b375ce8a38cbdc818010bc6c7 Mon Sep 17 00:00:00 2001 From: yingtao Date: Wed, 26 Oct 2022 22:40:30 -0400 Subject: [PATCH 1/2] fix: solve pan gesture conflict --- Example/Base.lproj/Main.storyboard | 7 ++++--- Example/ViewController.swift | 6 +++++- Example/zh-Hans.lproj/Main.storyboard | 21 ++++++++++--------- .../Mantis/CropView/CropView+Touches.swift | 8 +++++++ 4 files changed, 28 insertions(+), 14 deletions(-) diff --git a/Example/Base.lproj/Main.storyboard b/Example/Base.lproj/Main.storyboard index c8ecf014..cc7ef41b 100644 --- a/Example/Base.lproj/Main.storyboard +++ b/Example/Base.lproj/Main.storyboard @@ -1,9 +1,9 @@ - - + + - + @@ -171,6 +171,7 @@ + diff --git a/Example/ViewController.swift b/Example/ViewController.swift index ea670397..bcfad667 100644 --- a/Example/ViewController.swift +++ b/Example/ViewController.swift @@ -40,7 +40,11 @@ class ViewController: UIViewController, CropViewControllerDelegate { config: config) cropViewController.modalPresentationStyle = .fullScreen cropViewController.delegate = self - present(cropViewController, animated: true) + + let navigationController = UINavigationController(rootViewController: cropViewController) + cropViewController.title = "Demo" + cropViewController.view.backgroundColor = .white + present(navigationController, animated: true) } @IBAction func presentWithPresetTransformation(_ sender: Any) { diff --git a/Example/zh-Hans.lproj/Main.storyboard b/Example/zh-Hans.lproj/Main.storyboard index 74fe781f..37a540cb 100644 --- a/Example/zh-Hans.lproj/Main.storyboard +++ b/Example/zh-Hans.lproj/Main.storyboard @@ -1,7 +1,9 @@ - + + - + + @@ -11,11 +13,11 @@ - + - +