Closed Borlehandro closed 1 year ago
Kotlin/Native not give Array, it give object - NSArray
Yes, I understand Kotlin/Native give NSArray. I just thought LoadableStateKs
could be generated another way to support Arrays
) After research I understand that it probably will be possible only with direct Kotlin - Swift interop. For my case using wrapper around this list helps to make work on Swift side more comfortable. This issues is closed, thank you!
Hello everyone! I convert my sealed class to swift enum:
kswift converts it to the enum
Now, in my shared module I use
LoadableState<List<CustomObject>>
but on the Swift side i can’t useLoadableStateKs<Array<CustomObject>>
becauseLoadableStateKs
requires generic argument to be subclass ofAnyObject
. Maybe I understand this behaviour wrongly, can anyone explain it, please?