Is there anyway we can filter button tap event based on button title like below..!!
button.rx.tap
.filter { ($0.titleLabel.text.count)!> 0 }
Is there anyway we can filter button tap event based on button title like below..!!
button.rx.tap
.filter { ($0.titleLabel.text.count)!> 0 }
There may be a way to do it, but it isn't a correct thing to do. You programmatically changed the button title so the code that does that should be referenced here. Don't use your view as if it was a model.
For example: