[Solved] How can I append value if NSAttributedstring contains external link?
Here what you could do: Enumerate the link attribute. Check for each value if it’s the one you want (the one that starts with “applewebdata://”). Modify either the rest of the string and/or the link (your question is unclear on that part, I made both). attributedString needs to be mutable (NSMutableAttributedString). attributedString.enumerateAttribute(.link, in: NSRange(location: 0, … Read more