Prevent unexpected crash

This assertion can be called unexpectedly by the gesture recognizer behavior
of UIScrollView
This commit is contained in:
Shin Yamamoto committed 2019-02-23 10:28:34 +09:00
1 parent f43f7df7f3
commit 22edf5ce46
1 file changed
+1 -1
+1 -1
View File
@@ -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.