Skip to content

Scroll State is lost while switching tabs #1119

Open
@kasem-sm

Description

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!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions