Skip to content

Two SkeletonForEach in a LazyVGrid causes duplicate IDs #36

@nouun

Description

@nouun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions