preventing space if 0.
This commit is contained in:
parent
6dd7cab8f4
commit
64e6b8bbfe
@ -243,7 +243,9 @@ public typealias ActionBlock = () -> Void
|
|||||||
let imageAttachment = Label.getTextAttachmentImage(dimension: fontSize)
|
let imageAttachment = Label.getTextAttachmentImage(dimension: fontSize)
|
||||||
|
|
||||||
let mutableString = NSMutableAttributedString()
|
let mutableString = NSMutableAttributedString()
|
||||||
mutableString.append(NSAttributedString(string: " "))
|
if location != 0 {
|
||||||
|
mutableString.append(NSAttributedString(string: " "))
|
||||||
|
}
|
||||||
mutableString.append(NSAttributedString(attachment: imageAttachment))
|
mutableString.append(NSAttributedString(attachment: imageAttachment))
|
||||||
|
|
||||||
attributedString.insert(mutableString, at: location)
|
attributedString.insert(mutableString, at: location)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user