https://kotlinlang.org logo
#compose-ios
Title
# compose-ios
l

Lubomir Pisk

02/28/2023, 8:10 AM
Hello, I have a question. Is possible to add image (jpeg) to iosMain/resources and use it in iosMain composables? I know about methods for Android (R file) and for Desktop (path), but I didn't find solution for iOS. #jetbrainscompose
d

Dima Avdeev

02/28/2023, 2:57 PM
Hello! Yes we have sample here: https://github.com/JetBrains/compose-jb/blob/8a635b6f964e405737fe1b5b62eb2c0d42787[…]c/commonMain/kotlin/example/imageviewer/view/FullscreenImage.kt You need to add additional library to build.gradle
Copy code
implementation("org.jetbrains.compose.components:components-resources:1.4.0-alpha01-dev942")
l

Lubomir Pisk

02/28/2023, 10:26 PM
Great. Thank you.
25 Views