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