-
-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to dismiss fpc by drag content controller's scroll view #530
Comments
FloatingPanelController doesn't track a scroll view in the content automatically. Please call this method to recognize a scroll view to it. let fpc = FloatingPanelController()
...
fpc.track(scrollView: contentVC.scrollView) |
I have tried it. But it still does not work? Should I config anything more? |
This doesn't work for me, at least only partially. What does work is to quickly flick and let go. Then the scrollView bounce is connected with a bounce of the panel. I've added this to the
I analyzed the problem and found that due to calling FloatingPanel.scroll.issue.mov |
@futuretap |
thanks, looks good! |
Btw, Apple's Maps app suffers from the exact same problem. They should use your implementation 😉 |
It's the power of community! Thanks for your help 😄 |
Description
When the fpc contentViewController has scrollView, i can't dismiss it by drag the content.
It's now only can drag the grabberHandle area to dismiss.
Expected behavior
When scroll view is at top, drag it to dismiss fpc.
The text was updated successfully, but these errors were encountered: