Anyone using Decompose in production with Swift UI? #525
Replies: 2 comments
-
Thanks for raising the discussion! There was similar feedback a while ago. After some research, it appears that
Currently it looks like a limitation on the SwiftUI side. To me it looks like The same is kinda applicable to Jetpack Compose. There is usually only one level with top app bar navigation. E.g. I can have That said, maybe try to only use
|
Beta Was this translation helpful? Give feedback.
-
Hi @chrisbanes, we created a wrapper on UIKit to use nested navigations stack. There is only one limitation that navigation bar exists for each screen, but all navigation gestures work. You can find the code in this GitHub gist. Hope this will help you |
Beta Was this translation helpful? Give feedback.
-
We're hitting a lot of pain right now with Decompose and the integration with Swift UI's Navigation Views (
NavigationView
orNavigationStack
). Neither NV or NS work when nested (at all, or well), but the whole premise of Decompose is that you decompose your navigation into BLoCs, which means you're nearly always going to have nested navigation stacks.Has anyone used Decompose + Swift UI beyond a simple sample?
It feels like Decompose and Swift UI do not particularly work well together, and I don't really see a way where they ever could.
Beta Was this translation helpful? Give feedback.
All reactions