Hey <@U0234N0QYSK> I have to create a tabbed scre...
# compose-destinations
s
Hey @Rafael Costa I have to create a tabbed screen with children screens which we can navigate to and not just switch the composable On selection of any tab, i want the content of the screen to change to the selected destination Something like bottombar but the bottombar usecase only works because the DestinationsNavHost accepts a DirectionNavHostGraphSpec and not a TypedNavGraphSpec How can we circumvent this?
Although the KDocs say it accepts NavGraphSpec and not necessarily a NavHostGraphSpec Not sure what should be corrected here
r
NavHost does need a NacHostGraphSpec. Kdocs are slightly outdated, sorry for that.
Im not sure I understand the use case 🤔
s
The usecase is pretty simple I have a destination in which i have tabs. And based on the selected tabs i want to show a destination in the container below. I know this can be done using switching composables. But wanted to know if this is possible through destinations
s
Very much so Exactly that But imagine the bottom bar is nested inside another destination
r
Then I guess one way would be to have a second NavHost (and due to that also a second NavHostGraph to pass to it). But there are certainly other ways to do this with various pros and cons, so only your team is in the position of deciding what to do.
s
Yep Went completely another way Thanks for the input