Hey everyone! I’m working with Compose Multiplatfo...
# compose-ios
j
Hey everyone! I’m working with Compose Multiplatform and using android.graphics.Picture to convert Composables to Bitmap using Canvas on Android. However, I’m struggling to find a similar solution for iOS. Does anyone have insights or suggestions for converting Composables to Image (ImageBitmap or Byte array) on iOS in a Compose Multiplatform project?
j
Is it possible do with ObjC with iOS SDKs? If so could wrap composable in uiviewcontroller I think and take snapshot. Or any framework in iOS doing this and use cocoapods. I dont think there is a built in multiplatform solution for this.
a
renderComposeScene
👀 1
j
Interesting, didn’t find about the renderComposeScene...
a
No. You can’t use it with pointer modifier. Only static content
You have to make the lines arrray somewhere in the app snd then render it on this scene
a
@Alexander Zhirkevich hi there .. please elaborate more on this topic .. me too need the implementation .. do you have any resources on this ?
a
What exactly r u intrested in?
a
Turning composables to ImageBitmap on other platform
s
@Javokhir Savriev Yes i recentl implemeted
107 Views