Paul Weber
12/20/2021, 8:25 PMByteArray
on KotlinByteArray
in swift.
fun ByteArray.toUIImage(): UIImage = this.usePinned {
val nsData = NSData.create(bytes = it.addressOf(0), this.size.convert())
return UIImage(data = nsData)
}
I can’t see this function in Swift though.
Is this not possible or am I missing something?
How do you properly pass image data to swift from kotlin?Paul Weber
12/20/2021, 8:49 PM