i am wondering, havne't anyone thought of writing ...
# multiplatform
y
i am wondering, havne't anyone thought of writing switui code in kotlin directly?
b
Can you write swiftui code in obj-c?
i
No
b
Then you can't do it in kotlin either as it doesn't have direct swift interop. Same reason why you lose generics even though both swift and kotlin support them
g
I thought ObjectiveC was supporting generics, am I missing something?
b
They're lost in translation (can't recall why) when going from kotlin to objc to swift
My guess is because objc generics are "lightweight"
👍 1
g
(Found the Kevin Galligan article with more explanations on that + original PR, if ever someone is interested. Sorry for hijacking the thread.)
👍 1
s
Is direct Swift interop in the KMM roadmap?
e
Yes, although it’s on hold for now: https://kotlinlang.org/docs/roadmap.html#roadmap-details
s
Thank you for sharing that :)
👍 1