Issue #362
let tapGR = UITapGestureRecognizer(target: self, action: #selector(handleTap(_:)))
@objc private func handleTap(_ gr: UITapGestureRecognizer) {
didTouch?()
}
We need to use lazy
instead of let
for gesture to work
lazy var tapGR = UITapGestureRecognizer(target: self, action: #selector(handleTap(_:)))