You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure why, but in my project the didSelectLink delegate method is never called. It seems that the root cause is that touchesEnded is also never called inside of NantesLabel, only touchesBegan and touchesCancelled.
In my case the label is used within a UIStackView within a UITableViewCell, auto-sizing everything. I set myLabel.attributedText to an instance of NSAttributedString with the .foregroundColor and .font attributes set, and links are added the old-fashioned way via NSMutableAttributedString's addAttribute. The links are styled just fine (via linkAttributes), so they are definitely recognized. Also within touchesBegan I can see that it does find the link and sets activeLink. But.. touchesEnded is never called, so handleLinkTapped is also never executed.
I'm not sure how easy it's going to be to make a minimum reproducible project 😰
But I'll see what I can do!
The text was updated successfully, but these errors were encountered:
I'm not sure why, but in my project the
didSelectLink
delegate method is never called. It seems that the root cause is thattouchesEnded
is also never called inside of NantesLabel, onlytouchesBegan
andtouchesCancelled
.In my case the label is used within a UIStackView within a UITableViewCell, auto-sizing everything. I set
myLabel.attributedText
to an instance of NSAttributedString with the.foregroundColor
and.font
attributes set, and links are added the old-fashioned way viaNSMutableAttributedString
'saddAttribute
. The links are styled just fine (vialinkAttributes
), so they are definitely recognized. Also withintouchesBegan
I can see that it does find the link and setsactiveLink
. But..touchesEnded
is never called, sohandleLinkTapped
is also never executed.I'm not sure how easy it's going to be to make a minimum reproducible project 😰
But I'll see what I can do!
The text was updated successfully, but these errors were encountered: