From 181a10ad6fb2f2725c3234db813ef5ef68d098aa Mon Sep 17 00:00:00 2001 From: skydoves Date: Sat, 2 Mar 2024 10:30:21 +0900 Subject: [PATCH] Migrate to new Compose API --- .../kotlin/com/skydoves/landscapist/coil3/Platforms.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coil3/src/skiaMain/kotlin/com/skydoves/landscapist/coil3/Platforms.kt b/coil3/src/skiaMain/kotlin/com/skydoves/landscapist/coil3/Platforms.kt index b2ccd4f0..152adafe 100644 --- a/coil3/src/skiaMain/kotlin/com/skydoves/landscapist/coil3/Platforms.kt +++ b/coil3/src/skiaMain/kotlin/com/skydoves/landscapist/coil3/Platforms.kt @@ -36,7 +36,7 @@ internal actual fun getPlatform(): Platform = Platform.NonAndroid @Composable internal actual fun Image.toImageBitmap(): ImageBitmap { - return asBitmap().asComposeImageBitmap() + return toBitmap().asComposeImageBitmap() } internal actual val platformContext: PlatformContext @@ -69,5 +69,5 @@ internal actual fun rememberImagePainter(image: Image, imagePlugins: List