From 71bfd1513ab48073ad5b45610675a241b67542dc Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Thu, 7 Feb 2019 21:26:16 -0500 Subject: [PATCH] Fix links not getting cleared on cell reuse --- Tusker/Views/ContentLabel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tusker/Views/ContentLabel.swift b/Tusker/Views/ContentLabel.swift index ded9f02519..9ec0633516 100644 --- a/Tusker/Views/ContentLabel.swift +++ b/Tusker/Views/ContentLabel.swift @@ -31,10 +31,10 @@ class ContentLabel: LinkLabel { mutAttrString.addAttribute(.font, value: font, range: NSRange(location: 0, length: mutAttrString.length)) + self.links = [] let linkAttributes: [NSAttributedString.Key: Any] = [ .foregroundColor: UIColor.blue, ] - for (range, url) in links { mutAttrString.addAttributes(linkAttributes, range: range) self.links.append(Link(range: range, url: url))