Creating UITapGesture extension, that contains a function to detect wether user tap on desired text or not
Download UITapGetsure extension file from here
How to use UITapgesture extension
Adding UITapGestureRecognizer to UILabel
Selector for UITapGesture added to UILabel
Download adding selector for tapgesture added to UILabel file from here
adding selector for tapgesture added to UILabel
In above code you can replace or create new range for the text you want to detect. Now when you run your code and tap on UILabel you will see the console will print the statements if user tapped on desired text range.