I'm using MessageKit, and it requires that you have model objects that adopt the protocol MessageType
. Most of the examples involves structs following the protocol but unfortunately I'm using a third party API library to interact with a site's API, and they have all their models as classes (in Objective-C).
So when I try to adopt the protocol with extension ServerMessage: MessageType
I get the error
Inheritance from non-protocol type
How can I make it work with my Objective-C class?