Prevent unexpected crash
This assertion can be called unexpectedly by the gesture recognizer behavior of UIScrollView
This commit is contained in:
1 parent
f43f7df7f3
commit
22edf5ce46
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user