SkeletonUI icon indicating copy to clipboard operation
SkeletonUI copied to clipboard

Two SkeletonForEach in a LazyVGrid causes duplicate IDs

Open nouun opened this issue 4 years ago • 1 comments

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

nouun avatar Nov 25 '21 00:11 nouun

This is still the case in 2024

shatodj avatar Jan 19 '24 14:01 shatodj