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)

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

store cgpoint in userdefaults iOS swift