Juanpe / SkeletonView

☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
MIT License
12.53k stars 1.1k forks source link

Add option to allow user interaction while skeletons are visible #391

Closed lordzsolt closed 3 years ago

lordzsolt commented 3 years ago

Describe the feature or problem you’d like to solve

Currently, when showing skeletons in a table/collection/scroll view, it feels kinda bad (imho) that user interaction or scrolling is disabled.

Proposed solution

Add some kind of flag to allow views to scroll while skeletons are visible?

Global or per-scroll view?

Juanpe commented 3 years ago

Hi @lordzsolt,

The user interaction is disabled for skeletonized elements, and IMHO it makes sense since the user are waiting for the content and the element is not ready. In fact, the user can interact with the rest of the elements.

But, I'm thinking that maybe you're right, I mean, if we show the skeleton using the view of the view controller as root, all the UI is frozen, so as you said we could have a flag, true by default, indicating if the view is enabled when the skeleton is active or not.

Tag this issue as an enhancement 👍🏼

Thanks

Juanpe commented 3 years ago

Hi @lordzsolt, this feature has been included in the latest version (1.7.1)