Join Slack
Powered by
Is it possible for a Swift enum to implement an in...
# multiplatform
b
Bradleycorn
03/28/2024, 2:58 PM
Is it possible for a Swift enum to implement an interface defined in a KMP library? when trying to do it, I get an error in Xcode:
Non-class type 'MyEnum' cannot conform to class protocol 'MyKotlinInterface'
Something I’m doing wrong, or just can’t do it?
s
Sharyl
03/28/2024, 3:38 PM
I haven't had any luck with using interfaces, maybe others have had a different experience with them.
u
uli
03/28/2024, 3:49 PM
I suppose, kmp only knows about classes, not value types.
6
Views
Open in Slack
Previous
Next