SearchablePlayground: the LazyVGrid variant never filters
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 92/100
Research direction
Open Sources/Showcase/SearchablePlayground.swift at lines 124-141 and compare the LazyVGrid with the List and LazyVStack variants that use matchingAnimals(). Check how the grid consumes searchText, then verify that entering 5 leaves only matching tiles while the other Searchable examples still behave as before.
Written by the indexing model from the issue text.
Description
Where: Searchable › LazyVGrid —
SearchablePlayground.swift#L124-L141
Steps to reproduce
- Open Showcase › Searchable › LazyVGrid.
- Type
5in the search field.
Expected: the grid narrows to matching tiles, as the List and LazyVStack variants do through matchingAnimals().
Actual: all 100 tiles remain.
Cause: .searchable(text: $searchText) is attached, but searchText is never read; the grid iterates ForEach(0..<100) unconditionally (L130).
Suggested fix: filter the indices, e.g. ForEach((0..<100).filter { searchText.isEmpty || String($0).contains(searchText) }, id: \.self).
- Dominant language
- Swift
- Stars
- 44
- Forks
- 19
- Avg merge
- 6h 27m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from skiptools/skipapp-showcase
-
AlertPlayground iOS build failure in Xcode 27/Swift 6.4Possibly taken @dfabulich claimed this 42 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
skiptools/skipapp-showcase#143 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
skiptools/skipapp-showcase#138 ·
-
WebBrowserPlayground: "Open with No Params" passes the same params as "Open in Embedded Browser"Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
skiptools/skipapp-showcase#137 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
skiptools/skipapp-showcase#135 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
skiptools/skipapp-showcase#133 ·
All issues in skiptools/skipapp-showcase
Similar issues
-
AndroidAssetManager(env:peer:) in AssetURLProtocol.swift doesn't compile for Android on the Swift nightlyPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
erkamyaman/unslop-anything#579 ·
Maintainers usually reply within 1 day
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
erkamyaman/rust-anything#1311 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug priority:low status:queued
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day