scenee/FloatingPanel

UIRefreshControl and FloatingPanel

artem-shmatkov opened this issue · 2 comments

Hi! Is there a way to use UIRefreshControl? What settings should I enable?
Current result - I'm adding UIRefreshControl to my UICollectionView, disable removalInteraction, disable dismissalTapGestureRecognizer, trying to pull down my collection and whole FloatingPanel pulling down.
I expect something like this - if dismissal swipe is disabled and there is UIRefreshControl in my scrollView it should be possible to pull down.

Simulator.Screen.Recording.-.iPhone.14.-.2023-08-10.at.14.32.53.mp4

I think, you have enabled tracking the scroll view. You can try to untrack it, so your refresh would work.
untrack(scrollView: )

scenee commented

As @Zeynal7 mentioned, your need to stop the panel from tracking the collection view on the most expanded state.

According to the above description, I think you expect two intentions from the pull-down interaction. But, as far as I can think of, there is no way for a program to infer the user's intent in pulling down the collection view, whether it indicates to refresh content or move the panel down 🤔