Closed johnstonmatt closed 7 years ago
I tried putting a UITapGestureRecognizer on the label but that breaks detection of taps on active elements.
My suggestion would be use UITapGestureRecogniser to replace the ActiveLabel onTouch and exposing the recogniser. So you can use the UIGestureRecogniserDelegate to handle this.
Another way should be simply add private var tapHandler: (() -> ())?
and change the OnTouch
function .Ended
switch case to call tapHandler
on .None
.
There is a work going on where you can provide a custom handler for an Element, so when it is done, you can create it, and give it the same text as the color, and you're going to have it.
But as I said, is a going on work ATM
i cant do it please help me i've been trying a lot of hours please
Is there a way to handle all other taps on the label that don't match a specific active element, without breaking the active element detection?