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