joreilly / Confetti

KMP GraphQL based conference project with Jetpack Compose Android, Compose for Wear and SwiftUI iOS clients along with GraphQL backend.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scroll State is lost while switching tabs

kasem-sm opened this issue · comments

IMG_0554.MP4

Solution/Workaround: Decompose offers a list of all active child instances (stack.items, Returns the full stack of component configurations, ordered from tail to head). As per @arkivanov's suggestion, they should be stacked using ZStack, and every child should have a unique id modifier. Calling bringToFront will handle displaying the active instance on top.

As the screens are now stacked, each child should have a frame and background modifier so they don't appear to overlap each other. Perhaps @arkivanov may have some other solution.

However, this workaround results in a transparent navigation bar when scrolling the speakers list (which occurs after switching back to the Speakers tab from the Venue tab).

telegram-cloud-photo-size-5-6206378075621538409-y

If I get this transparent thing fixed, I will create a PR!