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

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift