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

Two SkeletonForEach in a LazyVGrid causes duplicate IDs #36

Open
nouun opened this issue Nov 25, 2021 · 1 comment
Open

Two SkeletonForEach in a LazyVGrid causes duplicate IDs #36

nouun opened this issue Nov 25, 2021 · 1 comment

Comments

@nouun
Copy link

nouun commented Nov 25, 2021

Describe the bug
Using SkeletonForEach twice in a LazyVGrid causes the IDs to be duplicated which leads to several bugs.

To Reproduce

LazyVGrid(columns: gridLayout, spacing: 20) {
    SkeletonForEach(with: ..., quantity: 2) { (loading, item) in
        Text(item).skeleton(with: loading)
    }
    SkeletonForEach(with: ..., quantity: 2) { (loading, item) in
        Text(item).skeleton(with: loading)
    }
}

Expected behavior
To be able to use two SkeletonForEach's.

Additional context

  • iOS: 15
  • Swift: 5.3
  • Branch: develop
@shatodj
Copy link

shatodj commented Jan 19, 2024

This is still the case in 2024

Viktor-by added a commit to Viktor-by/SkeletonUI that referenced this issue Jul 31, 2024
Two SkeletonForEach in a LazyVGrid causes duplicate IDs
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

2 participants