Hi all! How I can use LinkedHashMap from IOS?
# multiplatform
f
Hi all! How I can use LinkedHashMap from IOS?
r
What do you mean?
f
It shown like KotlinMutableDictionary
s
What exactly are you trying to achieve?
f
I want native swift arrays. for example I have "corp" LinkedHashMap in kotlin:
Copy code
LinkedHashMap<String, ArrayList<String>>
in IOS I see
Copy code
var corp: KotlinMutableDictionary<NSString, NSMutableArray> { get set }
Now I downcasted it to block.corp as? [String: [String]] Is this correct?
r
I’m not sure if that’s supposed to work this way
f
Edited
s
LinkedHashMap
and
ArrayList
are mutable, Swift collections aren’t. Why not just use
Map<String, List<String>>
instead?
126 Views