https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

Marko Novaković

03/31/2024, 7:57 PM
is there KMM ready solution for loading and caching images? I need to load and cache images inside shared KMM module but those images would be consumed from native UIs, Compose and SwiftUI. if I was building it by hand I’d use Okio to save images to disk and have a bridge from Android and iOS to send byte array that I’ll save. but I’d prefer to use lib like (maybe) Coil but idk. if it supports my use case
a

Ana Sekuloski

04/01/2024, 12:20 PM
Maybe you can use
expect
mechanism and in
actual
implementations you can use Coil/WhateverIosLib?
m

Marko Novaković

04/01/2024, 3:28 PM
it’s possible but I went fully manual route. coil is not multiplatform yet and my usecase is simpler than code I’ll need to wire things.
h

Hristijan

04/01/2024, 10:49 PM
m

Marko Novaković

04/02/2024, 8:47 AM
thank you. I checked Kamel and it is awesome. if my usecase becomes more involved I’ll switch to a dedicated library
13 Views