This is a reproducer project for a bug regarding Compose Multiplatform.
Video: https://github.com/outletcity/missing-composables/blob/main/reproducing-demo.mov
Compose content not rendered in LazyVStack after repeated navigation/redraw when parent uses .id
iOS rendering issue where Compose-based views inside SwiftUI lose their rendering after repeated navigation. The view container remains visible (including background), but the foreground content is no longer drawn.
- Compose Multiplatform: 1.10.3, also reproducible with: 1.11.0-beta02
- Platform: iOS
- Compose view is inside a SwiftUI LazyVStack
- Parent view of the Compose view uses an .id(...) modifier
- A SwiftUI redraw occurs repeatedly (via navigation back/forth)
- Launch the app.
- Main view is shown.
- Tap Detail in the navigation bar.
- Detail view is shown.
- Tap Back in the navigation bar.
- Repeat steps 3–5 about 5–10 times.
All Compose view content (including foreground) is consistently rendered.
Some elements stop rendering, while the view itself and background remain visible.
We found a perhaps related old ticket, but that reproducer-project is not longer online: CMP-3251 (https://youtrack.jetbrains.com/issue/CMP-3251/Shared-Composables-does-not-appear-when-used-in-one-of-the-Scrollable-Lists-in-SwiftUI)
