This commit is contained in:
Kevin G Christiano 2019-09-04 13:04:04 -04:00
commit 0bf9090b41

View File

@ -416,8 +416,8 @@ public typealias ActionBlock = () -> ()
/**
Insert external link icon anywhere within text of Label.
- Note: Each icon insertion adds 2 additional characters to the overall text length.
This means that you MUST insert icons and links in the order they would appear.
- Note: Each icon insertion adds 1 additional characters to the overall text length.
Therefore, you MUST insert icons and links in the order they would appear.
- parameter index: Location within the associated text to insert an external Link Icon
*/
public func insertExternalLinkIcon(at index: Int) {
@ -460,8 +460,8 @@ public typealias ActionBlock = () -> ()
let data = try? Data(contentsOf: url)
else { return }
imageAttachment.image = UIImage(data: data)
DispatchQueue.main.sync {
imageAttachment.image = UIImage(data: data)
label.setNeedsDisplay()
}
}