Replies: 6 comments 3 replies
-
Thanks for reporting! I remember there was some support of Wear in that project. Is it related? How is it related to Decompose and what kind of help you would like? Decompose in its core just exposes a list of children, it's up to the developer how to render it. |
Beta Was this translation helpful? Give feedback.
-
OK, so maybe for NYTimes-KMP, I don't know the codebase well. But was trying to fix it. From that link, the isBackground below is missing, and therefore ignored. But also doesn't help, since swiping to dismiss should close at the same time, not trigger a follow up close.
Will I basically need to implement SwipeDismissableNavHost? I'll take a look at what is involved. |
Beta Was this translation helpful? Give feedback.
-
It doesn't look like you need
Then in the lambda block, render the last child in the back stack of |
Beta Was this translation helpful? Give feedback.
-
How to I make the dismiss immediate, and not repeated with a second animation? Just disable animation here?
|
Beta Was this translation helpful? Give feedback.
-
I think you should use either |
Beta Was this translation helpful? Give feedback.
-
That worked nicely, although one bug to fix in Wear Compose
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to implement Wear Navigation in https://github.com/xxfast/NYTimes-KMP/pull/15/files which builds on Decompose, but the Wear swipe to dismiss isn't well supported.
For compose navigation there is SwipeDismissableNavHost
https://developer.android.com/training/wearables/compose/navigation
This uses SwipeToDismissBox
https://developer.android.com/training/wearables/compose/swipe-to-dismiss
But the effect isn't quite right in two ways
Screen_recording_20230430_090758.webm
Beta Was this translation helpful? Give feedback.
All reactions