eposting from the general channel, as no answers there- maybe better luck here - this channel looks to be the most appropriate one? A multiplatform project, android and iOS. In common code in Kotlin, I have an interface -
interface Idea
. When in Swift, want to have a struct implement this interface, a.k.a protocol now in the Swiftland. Get a compiler error -
inheritance from non-protocol type 'Idea'.
In the generated objective-c file I see this -
__attribute__((objc_subclassing_restricted))
. Reading on it, all objective c protocols are restricted to classes. So how I do get around this problem - or no getting around and have to use classes in Swiftđ„?