:wave: any known workaround to this K/N problem? ...
# kotlin-native
f
đŸ‘‹ any known workaround to this K/N problem? Let’s say I have a function like this
fun foo(map: Map<String, SomeDataClass?>)
When I try to use it from Swift,
SomeDataClass?
has the type
Any
:
func foo(map: [String: Any])
which forces me to downcast
m
Objective-C doesn't support nullable types in their generics and when you use them they become Any. Need to use some wrapper around the
SomeDataClass
to hide the nulls.
f
Oh I see, thanks!