ModifierPlayground: the build-mode gate and the stub text contradict each other
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- android, swift
- Domain
- build-system, mobile
Research direction
Start with Sources/Showcase/ModifierPlayground.swift at lines 4-7 and 82-85, then compare the SKIP_MODE_FUSE definition in Package.swift at line 57 with the APIs referenced in Fuse/ComposeView.swift. Reproduce both Fuse and Lite Android builds and determine which implementation is intended for each mode. Done means the gate, header comment, and unavailable-mode text consistently describe the behavior, with the relevant build behavior verified.
Written by the indexing model from the issue text.
Description
Where: Modifiers —
ModifierPlayground.swift#L4-L7,
#L82-L85
Steps to reproduce (Android, SKIP_MODE=fuse)
- Build and run the Showcase with
SKIP_MODE=fuse. - Open Showcase › Modifiers.
Expected: either the playground, or a stub that accurately explains why it is unavailable in this mode.
Actual: the stub reads "ModifierPlayground uses ContentModifier with .composeModifier(), a Fuse-only extension." and "Run the app with SKIP_MODE=fuse to see this playground." while the app is already running in Fuse mode. Lite builds get the full playground.
Cause: the gate #if !os(Android) || !SKIP_MODE_FUSE (L7) gives the full implementation to iOS and Lite-Android and the stub to Fuse-Android (SKIP_MODE_FUSE is only defined for Android Fuse builds, Package.swift L57). The header comment (L4-L6) and the stub text describe the opposite arrangement. The full implementation uses // SKIP @nobridge and #if SKIP blocks, which suggests it was written for Lite; skip-fuse-ui 1.19.0 also declares composeModifier/ContentModifier (Fuse/ComposeView.swift).
Suggested fix: if the full playground is meant to be Lite-only, keep the gate and correct the header comment and stub text (e.g. "uses Lite-only APIs; build without SKIP_MODE=fuse to see it"). If it is meant to run on Fuse, invert the gate and port the #if SKIP blocks to the Fuse API.
- 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#136 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
skiptools/skipapp-showcase#135 ·
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