I am using a package that declares an open class A, which I can't modify.
In my code, I'd like to declare class B as inheriting from this A class, and also conform to a delegate protocol (HMHomeManagerDelegate in my case).
class B: A, HMHomeManagerDelegate {
The compiler is telling me : "Cannot declare conformance to 'NSObjectProtocol' in Swift; 'HomesList' should inherit 'NSObject' instead" - and that's because HMHomeManagerDelegate inherits from NSObjectProtocol, and I shall therefore provide all NSObjectProtocol's required methods in B.
But that means a lot of boiler plate code (some of which being non-trivial)...
Is there any better pattern ?