I have 2 different classes (NSObject, RealmObject) that should conform to one common protocol Listening.
protocol Listening: class {
var filter: String? { get }
}
Then I have this parent class that has array var allListeningObjects: [Listening] which should hold all objects that conform to this protocol. But before I can run it, I get this error: Type 'Listening' does not conform to protocol 'Hashable'
Im open to any advice that can make this work.