I currently have a UIButton
that uses rx.tap
function of RxSwift to dismiss a UIVIewController
button.rx.tap
.subscribe(onNext: { [weak self] in
self?.navigationController?.dismiss(animated: true, completion: nil)
})
.disposed(by: disposeBag)
How can I implement the same function to an ASButtonNode
object (from AsyncDisplayKit)
I tried with the below code
buttonNode.rx.tap
.subscribe(onNext: { [weak self] in
self?.navigationController?.dismiss(animated: true, completion: nil)
})
.disposed(by: disposeBag)
But I get an error saying Ambiguous reference to member 'tap'
Or is there any alternative for this.