From 81490ae3cfc3ebdb632867fbf64c455942cd7fdf Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Wed, 4 Sep 2019 09:04:02 -0400 Subject: [PATCH 1/2] Moved line. --- MVMCoreUI/Atoms/Views/Label.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MVMCoreUI/Atoms/Views/Label.swift b/MVMCoreUI/Atoms/Views/Label.swift index 53efc5a6..0bf1dad5 100644 --- a/MVMCoreUI/Atoms/Views/Label.swift +++ b/MVMCoreUI/Atoms/Views/Label.swift @@ -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() } } From 8a74886928a46500923b86586e88e7c6c3a080b3 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Wed, 4 Sep 2019 09:58:46 -0400 Subject: [PATCH 2/2] fixed commed. --- MVMCoreUI/Atoms/Views/Label.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MVMCoreUI/Atoms/Views/Label.swift b/MVMCoreUI/Atoms/Views/Label.swift index 0bf1dad5..4346dfa0 100644 --- a/MVMCoreUI/Atoms/Views/Label.swift +++ b/MVMCoreUI/Atoms/Views/Label.swift @@ -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) {