I’m trying to expose an extension function on `Byt...
# multiplatform
p
I’m trying to expose an extension function on
ByteArray
on
KotlinByteArray
in swift.
Copy code
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?
2
Yeah, apparently this is fine. A clean build solved everything. 🙂