SkeletonView icon indicating copy to clipboard operation
SkeletonView copied to clipboard

Animation on UITableViewCell is stopped when ViewController is hidden

Open clementcasa opened this issue 4 years ago • 3 comments

⚠️ Please fill out this template when filing an issue.

🙏🏼 Please check if it already exists other issue related with yours.

What did you do?

I implement an app with 2 tabs within a TabBarController, each implementing a TableView of data using the SkeletonViews but once the animation has started if I change tabs and go back to the first one the animation of SkeletonView has stopped.

What did you expect to happen?

I expect that the animation does not stopped when changing tabs.

What happened instead?

The animation of SkeletonView is stopped when changing the tabs.

Steps to reproduce the behavior

Have an app with 2 tabs and each tabs implementing a TableView using cells with SkeletonView, change tabs while the animation is running.

SkeletonView Environment

SkeletonView version: 1.8.1 Xcode version: 11.3.1 Swift version: 5

clementcasa avatar Mar 06 '20 14:03 clementcasa

I have the same problem

aiKrice avatar Jun 05 '20 15:06 aiKrice

Are you calling showSkeleton() again in viewWillAppear when you switch tab ?

mohammed-shakeer avatar Jun 08 '20 12:06 mohammed-shakeer

@Juanpe , any solution/quick fix for this? This looks like an issue with the library where it can't clear out the skeletonview after the view disappears from the screen.

anishparajuli555 avatar Mar 07 '22 05:03 anishparajuli555