Join Slack
Powered by
What are your workarounds to make a value/inline c...
# kotlin-native
h
hfhbd
05/24/2022, 3:29 PM
What are your workarounds to make a value/inline class more useable in Swift? Currently, the type is mapped to Any.
n
Nicklas Jensen
05/24/2022, 7:59 PM
Our workaround is to not expose `value class`es to Swift 🤷🏻♂️
p
Paul Woitaschek
05/25/2022, 10:18 PM
Yep that's our workaround too.
h
hfhbd
05/26/2022, 9:35 PM
Yeah, I do use this "workaround" too, but I hoped, there is a better way 😄
hfhbd
05/30/2022, 2:58 PM
Okay, looks like you could simple downcast the value to its expected type.
3
Views
Open in Slack
Previous
Next