If I have the following code
func handle(showEmptyView: Driver<Bool>) {
showEmptyView
.drive(onNext: setEmptyViewShown)
.disposed(by: disposeBag)
}
func setEmptyViewShown(_ show: Bool) {
tableView.isHidden = !show
emptyView.isHidden = show
}
Is this a retain cycle when I call setEmptyViewShown
because I don't use weak
or unowned
self?