removed programmatic space insert.
This commit is contained in:
parent
890c1221d3
commit
87cc0842de
@ -425,8 +425,7 @@ public typealias ActionBlock = () -> ()
|
|||||||
guard let attributedText = attributedText, index <= attributedText.string.count && index >= 0 else { return }
|
guard let attributedText = attributedText, index <= attributedText.string.count && index >= 0 else { return }
|
||||||
|
|
||||||
let mutableString = NSMutableAttributedString(attributedString: attributedText)
|
let mutableString = NSMutableAttributedString(attributedString: attributedText)
|
||||||
mutableString.insert(NSAttributedString(string: " "), at: index)
|
mutableString.insert(NSAttributedString(attachment: Label.getTextAttachmentImage(dimension: font.pointSize)), at: index)
|
||||||
mutableString.insert(NSAttributedString(attachment: Label.getTextAttachmentImage(dimension: font.pointSize)), at: index + (index == 0 ? 0 : 1))
|
|
||||||
|
|
||||||
self.attributedText = mutableString
|
self.attributedText = mutableString
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user