tapgesture for UILabel iOS swift
Solution:
cell.lbl.rx.tapGesture()
.when(.recognized) // This is important!
.subscribe(onNext: { [weak self] _ in
guard let self = self else { return }
self.view?.endEditing(true)
}).disposed(by: cell.disposebag)
Solution:
cell.lbl.rx.tapGesture()
.when(.recognized) // This is important!
.subscribe(onNext: { [weak self] _ in
guard let self = self else { return }
self.view?.endEditing(true)
}).disposed(by: cell.disposebag)
Comments
Post a Comment