From 87cc0842de6e7b0edab11c94f09a4e4707b218d3 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Tue, 3 Sep 2019 10:36:16 -0400 Subject: [PATCH] removed programmatic space insert. --- MVMCoreUI/Atoms/Views/Label.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MVMCoreUI/Atoms/Views/Label.swift b/MVMCoreUI/Atoms/Views/Label.swift index 1c3264cd..53efc5a6 100644 --- a/MVMCoreUI/Atoms/Views/Label.swift +++ b/MVMCoreUI/Atoms/Views/Label.swift @@ -425,8 +425,7 @@ public typealias ActionBlock = () -> () guard let attributedText = attributedText, index <= attributedText.string.count && index >= 0 else { return } let mutableString = NSMutableAttributedString(attributedString: attributedText) - mutableString.insert(NSAttributedString(string: " "), at: index) - mutableString.insert(NSAttributedString(attachment: Label.getTextAttachmentImage(dimension: font.pointSize)), at: index + (index == 0 ? 0 : 1)) + mutableString.insert(NSAttributedString(attachment: Label.getTextAttachmentImage(dimension: font.pointSize)), at: index) self.attributedText = mutableString }