reposting from the general channel, as no answers, maybe better luck here? Hi. A multiplatform project, android and iOS. In common code, I have an interface -
interface Idea
. When in Swift, want to have a struct implement this interface, a.k.a now as protocol 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😥?