In a swift iOS app, I have set a UILabel with an NSAttributedString on it. The AttributedString contains a URL set with
[NSLinkAttributeName:NSURL(string:urlStr)!].
All appears fine, meaning that the URL is clearly set as such, but when I tap it nothing happens.
Is there something I should do to make the URL work as one would expect (i.e fire Safari)?
I tried the following but it had no effect at all.
theLabel.userInteractionEnabled = true