I have a question regarding how compose ios render...
# compose-ios
c
I have a question regarding how compose ios renders. Does it use its own rendering engine or does it compile to native SwiftUI elements? And what is the performance hit regarding compose ios? I imagine it does not have native performance, but how far from native it is?
👍 2
m
Compose iOS works the same way as Jetpack Compose for Android, it draws the Composables using Skia and it uses Metal engine for hardware acceleration. It doesn't compile to SwiftUI but the performance is really good, also sometimes the animations are smoother on iOS than android.
s
Just to clarify, Jetpack Compose on Android doesn't interact with Skia directly, but rather employs the View Canvas - an abstraction above the native Android rendering system. This system, while ultimately utilizing Skia, does so at a deeper level, indirectly facilitating Compose's use of Skia. This also contributes to the seamless integration of Jetpack Compose with Android View, ensuring compatibility with the pre-existing UI framework. On the other hand, Compose for iOS bears a resemblance to Flutter in its approach, bundling its own Skia renderer to draw its UI elements.
thank you color 1
d
Yep, two previous answers are good enough! For now we are using Skia, but it may change in the future.
h
@Dima Avdeev when you said "change" what do you meant by that?
d
I mean that we can switch to another rendering pipeline. Without using Skia. But we don't plan to do it yet.
234 Views