From 22edf5ce46f3550e0d8a4e31a137fa30bb86bae9 Mon Sep 17 00:00:00 2001 From: Shin Yamamoto Date: Sat, 16 Feb 2019 19:03:04 +0900 Subject: [PATCH] Prevent unexpected crash This assertion can be called unexpectedly by the gesture recognizer behavior of UIScrollView --- Framework/Sources/FloatingPanel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Framework/Sources/FloatingPanel.swift b/Framework/Sources/FloatingPanel.swift index f33b620..5a02a19 100644 --- a/Framework/Sources/FloatingPanel.swift +++ b/Framework/Sources/FloatingPanel.swift @@ -269,7 +269,7 @@ class FloatingPanel: NSObject, UIGestureRecognizerDelegate, UIScrollViewDelegate // Fix the scroll offset in moving the panel from half and tip. scrollView.contentOffset.y = initialScrollOffset.y case .hidden: - fatalError("Now .hidden must not be used for a user interaction") + break } // Always hide a scroll indicator at the non-top.