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.5k stars 1.1k forks source link

TapGesture Inside CollectionView Not Working After Adding SkeletonView #545

Open EmirhanKarahan opened 11 months ago

EmirhanKarahan commented 11 months ago

Description

I am using SkeletonView with my collectionView which shows users transportation cards. In every viewWillAppear method I'm showing SkeletonView with gradient animation, after network calls are done I hide the skeleton. In UI everything works fine but the tap gesture recognizer inside the actual collectionView cell is not clickable anymore.

What type of issue is this? (place an x in one of the [ ])

Requirements (place an x in each of the [ ])


Bug Report

SkeletonView Environment:

SkeletonView version: 1.30.4 Xcode version: 14.2 Swift version: 5.7

Steps to reproduce:

Please replace this with the steps to reproduce the behavior.

  1. Setup SkeletonView for a collectionView with a custom cell for skeleton loading
  2. showAnimatedGradientSkeleton()
  3. hide it from a closure

Expected result

SkeletonView hides and you can click wherever you want

Actual result:

SkeletonView hides and but you can't click the view inside collection view. Recognizer function doesn't work at all.

Attachments:

Debug view hierarchy:

Working as excepted without SkeletonView: Screenshot 2023-07-24 at 14 30 10

Weird View when I hide the SkeletonView: Screenshot 2023-07-24 at 14 30 47

haddie-19 commented 5 days ago

Ran into this too. As far as I can see, happens as soon as showAnimatedGradientSkeleton is called from within a cell class (regardless of whether the skeletonable view is even added to the view hierarchy or not).