Hi, all. Is there a Compose equivalent to the Swif...
# compose
d
Hi, all. Is there a Compose equivalent to the SwiftUI NavigationSplitView type?
g
I don't think theres a premade one, but you'd just do a row w/ as many items as you want and have each row keep a state of which item was selected, and then use that state to drive each subsequent row
👍 1
z
@Alex Vanyo do you know?
a
@Darryl Pierce I think you are looking for SlidingPaneLayout.
a
The
ListDetailPaneScaffold
from the new
material3-adaptive
library is the closest equivalent in Compose. https://developer.android.com/jetpack/compose/layouts/list-detail has the main documentation so far - the library is still in the first alpha phase, so we’re in the stage where any and all feedback and bugs are welcome as we’re working on the APIs.
👍 2
d
@Alex Vanyo That looks like a good analog to it. Thanks!
g
Can you use material3-adaptive on multiplatform or is that one android only at the moment?