Hi everyone, I want to know that the UI which is d...
# multiplatform
s
Hi everyone, I want to know that the UI which is designed using jetpack compose will be compatible on IOS as well? for e.g navigation drawer in compose will run smoothly on IOS ? basically I need to design a UI which has a navigation drawer
m
I believe you’re referring to Compose Multiplatform. Yeah, if you properly design a nav drawer UI in Compose, it should be smooth on both platforms.
❤️ 2
s
what about fragments in KMP?
m
Fragments are a (very bad) android API. They don't exist in KMP.
2
You can use them in the android source set, of course. KMP isn't hard wired to multiplatform compose.
s
@McEna then what is the best way to navigate between views pointing out to the navigation item click event
m
there's a bunch of navigation libraries already. Some of them are displayed here: Navigation and routing | Kotlin Multiplatform Development Documentation (jetbrains.com)
j
You might check out PreCompose, which has a similar API to Android's Jetpack Navigation. Or try another navigation library, which supports KMP.
m
I remember having read Jetpack Navigation was getting multiplatform support, but I can't find the announcement.
s
Thanks a bunch let me implement the possible solution, I will update here…