updated.
This commit is contained in:
commit
0bf9090b41
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user