Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lag before showing skeleton #268

Open
guidev opened this issue Feb 21, 2020 · 5 comments
Open

Lag before showing skeleton #268

guidev opened this issue Feb 21, 2020 · 5 comments

Comments

@guidev
Copy link
Contributor

guidev commented Feb 21, 2020

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:

@odanu
Copy link

odanu commented Mar 23, 2020

We are experiencing the same issue.

@adelbios
Copy link

any update ؟! I am facing the same problem

@adelbios
Copy link

@Juanpe

@BasselEzzeddine
Copy link

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

@xiaowei-dreame
Copy link

xiaowei-dreame commented Feb 27, 2025

When i create my tableView, i set this:

tableView.isHidden = true

then, i start skeleton animation:

    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        
        if self.isLoading {
            self.tableView.isSkeletonable = true
            self.tableView.showAnimatedGradientSkeleton()
            self.tableView.isHidden = false
        }
    }

it works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants