I'd like to read the value of a property
var checkInEnabled: Driver<Bool> { get }
I only need to to run a bit code once when the class has loaded, so I don't want to use something like:
roomStatus.checkInEnabled
.drive { [weak self] enabled in
if !enabled {
// do something everytime it changes
}
}.disposed(by: disposeBag)
But rather something like this:
if roomStatus.checkInEnabled {
//only do something now
}