How can I properly read the data from a mutable array in Swift from a Kotlin Module? Kotlin Shared Module:
data class Tape(private val capacity: Int) {
val reel: MutableList<Char>
...
}
Swift:
tape.reel.compactMap({ $0 as? Character } // leads to nothing in the array
Kotlin Char will be mapped as
UInt16One option might be to map your char list to a string in Kotlin:
Then on the
Swiftside work with it as aString