Is this still working for you? I'm not able to get...
# ios
m
Is this still working for you? I'm not able to get a pure Kotlin UIView to recognize a tap action. The sample link above is no longer active, is there another example anywhere? I've also tried:
Copy code
val tap = UITapGestureRecognizer(
    target = this,
    action = NSSelectorFromString("Tapped")
)
tap.delegate = this
tap.numberOfTapsRequired = 1u

this.addGestureRecognizer(tap)
this.setUserInteractionEnabled(true)
Copy code
@ObjCAction
private fun Tapped() {
    notifyClicked()
}