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

Diego

01/24/2019, 5:05 PM
Hello guys. I’m working on a multiplatform library. I have a method on my common module that returns
ByteArray
. When I import the framework from an iOS project, the ByteArray is converted to
KotlinByteArray
but I thought I would have a
NSData
in swift 😢 I think a solution would be to pass the ByteArray encoded as
Base64
. Is there a better way to convert a ByteArray to NSData?
d

Dominaezzz

01/24/2019, 5:15 PM
d

Diego

01/24/2019, 5:26 PM
Thanks for the link Dominic!
d

Dominaezzz

01/24/2019, 5:27 PM
No problem.
2 Views