alexzhirkevich / compose-cupertino

Compose Multiplatform UI components for iOS (Cupertino Widgets)
Apache License 2.0
993 stars 34 forks source link

BottomSheet stack #14

Open Lavmee opened 7 months ago

Lavmee commented 7 months ago

Is it possible to use several bottom sheets at the same time?

I tried nesting bottomsheetscaffold but there is an outline on a black background when the depth is greater than one.

alexzhirkevich commented 7 months ago

At it is a scaffold, currently only 1 sheet can be expanded with backdrop animation

alexzhirkevich commented 7 months ago

You can use box of scaffolds and remove Large detent from modal presentation of the 2nd sheet. Replace it with Fraction(1f) and you will have the same result without depth effect for the 2nd sheet.

alexzhirkevich commented 7 months ago

Tried nested scaffold and it works even better than i expected. The only issue is a white border around inner scaffold. I guess you mean it. This probably can be fixed. For now you can set container color of the inner scaffold to black/transparent and border won't be visible

Lavmee commented 7 months ago

I tried setting the inner container color to black, but the border still shows.

alexzhirkevich commented 7 months ago

I added it to scaffold itself, so probably color should be applied for both of them or the outer one

Lavmee commented 7 months ago

Thanks! it works

alexzhirkevich commented 7 months ago

Do you use Decompose for navigation in your app? I guess you do Precompose... I'm thinking about sheet stack feature as a part of decompose integration.