From 64e6b8bbfee91795ffeeeae9ee9e2ca15a521850 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Fri, 26 Jul 2019 15:21:27 -0400 Subject: [PATCH] preventing space if 0. --- MVMCoreUI/Atoms/Views/Label.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/Atoms/Views/Label.swift b/MVMCoreUI/Atoms/Views/Label.swift index 0dfd2ba1..8ba09f36 100644 --- a/MVMCoreUI/Atoms/Views/Label.swift +++ b/MVMCoreUI/Atoms/Views/Label.swift @@ -243,7 +243,9 @@ public typealias ActionBlock = () -> Void let imageAttachment = Label.getTextAttachmentImage(dimension: fontSize) let mutableString = NSMutableAttributedString() - mutableString.append(NSAttributedString(string: " ")) + if location != 0 { + mutableString.append(NSAttributedString(string: " ")) + } mutableString.append(NSAttributedString(attachment: imageAttachment)) attributedString.insert(mutableString, at: location)