FloatingPanel icon indicating copy to clipboard operation
FloatingPanel copied to clipboard

UIRefreshControl and FloatingPanel

Open artem-shmatkov opened this issue 2 years ago • 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.

https://github.com/scenee/FloatingPanel/assets/340680/fa40e8f3-168f-44c7-bfcd-d94a45afcb18

artem-shmatkov avatar Aug 10 '23 11:08 artem-shmatkov

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

Zeynal7 avatar Aug 28 '23 10:08 Zeynal7

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 🤔

scenee avatar Sep 01 '23 14:09 scenee