I have a tuple variable in my code, that comes from ReactiveSwift:
class MyClass {
var (signal, signalSender) = Signal<Bool, Error>.pipe()
}
How can I declare that variable tuple in a protocol?
Similar like this (doesn't work):
protocol MyProtocol {
var (signal, signalSender): Signal<Bool, Error> { get set }
}
There appears a syntax error: "Getter/setter can only be defined for a single variable"
Thank you!