Dmitri Sh
10/24/2019, 1:10 AMinterface 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😥?basher
10/24/2019, 3:32 AMDmitri Sh
10/24/2019, 7:09 PMAubrey Goodman
11/01/2019, 7:37 PMclass YourIdea: NSObject, Idea { ... }
Dmitri Sh
11/03/2019, 6:16 PMEllen Shapiro
12/03/2019, 3:57 PMHashable
or Equatable
within the same file as the primary class declaration and all the properties conform to whichever (or both), you should still get that auto-conformance in classes