SkeletonView icon indicating copy to clipboard operation
SkeletonView copied to clipboard

Lag before showing skeleton

Open guidev opened this issue 5 years ago • 5 comments

What did you do?

Before the skeleton view is showed, for a fraction of a second you can see the underlying views (typically with placeholder text). It doesn't look that great. (See attached video - I've enabled slow animations to make it more visible).

What did you expect to happen?

Ideally, you shouldn't be able to see the views behind the skeleton.

What happened instead?

ezgif com-optimize

Steps to reproduce the behavior

You can easily reproduce it with the example project.

SkeletonView Environment

SkeletonView version: Xcode version: Swift version:

guidev avatar Feb 21 '20 12:02 guidev

We are experiencing the same issue.

odanu avatar Mar 23 '20 13:03 odanu

any update ؟! I am facing the same problem

adelbios avatar Apr 18 '20 01:04 adelbios

@Juanpe

adelbios avatar Apr 20 '20 10:04 adelbios

Use showAnimatedGradientSkeleton(transition: .none) to avoid the lag. It's a delay coming from the default transition.

BasselEzzeddine avatar Aug 02 '20 12:08 BasselEzzeddine