Vytenis
10/21/2024, 6:51 AMval image = UIImage.imageNamed("image_name")
in my build.gradle
compose.resources {
customDirectory(
sourceSetName = "iosMain",
directoryProvider = provider { layout.projectDirectory.dir("composeResources") }
)
}
(Obviously I've created composeResources folder with the same structure as composeApp)
But I guess it's only for having custom resources in compose?
But what about if I want to display UIimage from my iosMain code?sigmadelta
10/21/2024, 7:06 AMKotlinByteArray
to NSData
and then visualize this with a UIImage
.François
10/21/2024, 7:43 AMUIImage.imageNamed("image_name")
is loading only asset stored inside the xcasset folder.Vytenis
10/21/2024, 7:44 AMFrançois
10/21/2024, 7:49 AM