Could you help me find the list of the UI componen...
# compose-ios
n
Could you help me find the list of the UI components available for iOS on compose? At the bottom of the template's readme there's a pointer to tutorials, but they only feature tutorials for Desktop. There's also a list of example apps, but I was looking more for a generalistic list of components. Or is that that any Android Jetpack components would be available to cross-compile for iOS as well?
r
It may be a little early for such level of documentation
l
A large portion of components are available on desktop, android, and iOS. If it's usable in commonMain, it's available for each. Some things aren't done yet for iOS, like dialogs, but I believe they're planned.
n
Ah, I see. So a decent idea to discover components is to look through the Jetpack components and see if they compile?
k
yes. and there is a good site with component library https://www.composables.com/components
n
Thank you!
And do I understand it correctly that the Kotlin code to use a component is exactly the same as in Jetpack?
k
yes. under the hood it is the same compose libraries but built for multiplatform
j
The main difference is in Android it will be fully compatible with everything. But in iOS its like polyfills where compose implementation and version could differ. In some cases with polyfills it will in many cases using ObjC interop. Like one example thats not implemented yet is LocalInsets. Where Android works but iOS not providing Insets from iOS device. They working on it. Also some compose libraries such as androidx navigation or paging not multiplatform compatible as contain Android specific calls in compose code. But pure foundation stuff I havent experienced a lot not available, most is there.
119 Views