Skip to content

outletcity/missing-composables

Repository files navigation

This is a reproducer project for a bug regarding Compose Multiplatform.

Video: https://github.com/outletcity/missing-composables/blob/main/reproducing-demo.mov

alt text

Issue

Compose content not rendered in LazyVStack after repeated navigation/redraw when parent uses .id

Description

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.

Environment

  • Compose Multiplatform: 1.10.3, also reproducible with: 1.11.0-beta02
  • Platform: iOS

Conditions required to reproduce

  • 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)

Steps to reproduce

  1. Launch the app.
  2. Main view is shown.
  3. Tap Detail in the navigation bar.
  4. Detail view is shown.
  5. Tap Back in the navigation bar.
  6. Repeat steps 3–5 about 5–10 times.

Expected result

All Compose view content (including foreground) is consistently rendered.

Actual result

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors