From 9f5ad1f833ea3b6d0253736f52625a5264c493ec Mon Sep 17 00:00:00 2001 From: Dominic Go <18517029+dominicstop@users.noreply.github.com> Date: Mon, 5 Jun 2023 05:01:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AB=20Update:=20Exp=20-=20`AdaptiveMod?= =?UTF-8?q?al`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Update experiment/test - `swift-programmatic-modal/AdaptiveModal`. --- .../AdaptiveModal/AdaptiveModalManager.swift | 3 +-- .../Test/RNIDraggableTestViewController.swift | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/experiments/swift-programmatic-modal/AdaptiveModal/AdaptiveModalManager.swift b/experiments/swift-programmatic-modal/AdaptiveModal/AdaptiveModalManager.swift index 7193681a..653f79c4 100644 --- a/experiments/swift-programmatic-modal/AdaptiveModal/AdaptiveModalManager.swift +++ b/experiments/swift-programmatic-modal/AdaptiveModal/AdaptiveModalManager.swift @@ -761,8 +761,7 @@ class AdaptiveModalManager { }; func applyInterpolationToModal(forGesturePoint gesturePoint: CGPoint){ - guard let modalView = self.modalView, - let gestureInitialPoint = self.gestureInitialPoint + guard let gestureInitialPoint = self.gestureInitialPoint else { return }; let modalRect = self.modalFrame!; diff --git a/experiments/swift-programmatic-modal/Test/RNIDraggableTestViewController.swift b/experiments/swift-programmatic-modal/Test/RNIDraggableTestViewController.swift index 6cd4b433..46e35bfb 100644 --- a/experiments/swift-programmatic-modal/Test/RNIDraggableTestViewController.swift +++ b/experiments/swift-programmatic-modal/Test/RNIDraggableTestViewController.swift @@ -60,7 +60,7 @@ enum AdaptiveModalConfigTestPresets: CaseIterable { modalScaleX: 0.5, modalScaleY: 1, modalTranslateX: 1000, - modalTranslateY: 0 + modalTranslateY: 1000 ) ), // snap point - 2