https://kotlinlang.org logo
#compose
Title
# compose
a

alitahasubfly

12/10/2023, 7:57 PM
Hello everyone. I am trying to implement a compose multiplatform library and currently stuck on resource generation (xml icons) for ios. I have created my library in android studio and added cocoapods at first. after many attempts (including cleans, pod installs and releasing pods) I couldn't be able to create the xml icon resources for ios. Finally, I gave up on cocapods and turned everything to XCFramework. Although, no matter what I did, I could not be able to generate that icon resources on ios. Android works fine but nothing works for ios. I have came into this issue https://slack-chats.kotlinlang.org/t/10503022/why-does-this-crash-on-ios-image-painter-painterresource-ima but that didn't worked either. I can share my gradle if anyone wants including my project structure. I am desperate to any solution, so any help is appreciated. Additionally, I am using compose.components.resources, not any kind of third party.
z

Zach Klippenstein (he/him) [MOD]

12/11/2023, 3:52 PM
FYI #compose-ios
a

alitahasubfly

12/20/2023, 7:47 AM
I gave up in the end and hardcoded vector drawable to kotlin. I check platform (android/ios) and use according between xml and kt (this one for showing the usage purposes, I know that I can use the same vector.kt on both)
2 Views