Add missing Label image attachment color tinting.
This commit is contained in:
parent
ef0f47cbc4
commit
f853275005
@ -368,6 +368,10 @@ public typealias ActionBlock = () -> ()
|
|||||||
imageAttachment = Label.getTextAttachmentImage(name: imageName, dimension: fontSize)
|
imageAttachment = Label.getTextAttachmentImage(name: imageName, dimension: fontSize)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let tintColor = imageAtt.tintColor {
|
||||||
|
imageAttachment.image = imageAttachment.image?.withTintColor(tintColor.uiColor, renderingMode: .alwaysTemplate)
|
||||||
|
}
|
||||||
|
|
||||||
// Confirm that the intended image location is within range.
|
// Confirm that the intended image location is within range.
|
||||||
if 0...labelText.count ~= imageAtt.location {
|
if 0...labelText.count ~= imageAtt.location {
|
||||||
let mutableString = NSMutableAttributedString()
|
let mutableString = NSMutableAttributedString()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user