I have 2 protocols and a class that conforms to it.
protocol SomeProtocol: AnyObject { }
protocol AnotherProtocol: AnyObject { }
protocol HelperProtocol {
var delegate: AnotherProtocol? { get }
}
class SomeClass {
weak var delegate: (SomeProtocol & AnotherProtocol)?
}
extension SomeClass: HelperProtocol { // Type 'SomeClass' does not conform to protocol 'HelperProtocol'
}
How do I fix the compile error?