scenee / FloatingPanel

A clean and easy-to-use floating panel UI component for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UIRefreshControl and FloatingPanel

artem-shmatkov opened this issue · 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: )

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 🤔