Don’t show text in the timeline when there’s a title.
This commit is contained in:
parent
1614416fe0
commit
08b9a56ab3
@ -108,8 +108,8 @@ private func attributedTitleString(_ title: String, _ text: String, _ appearance
|
|||||||
if !title.isEmpty && !text.isEmpty {
|
if !title.isEmpty && !text.isEmpty {
|
||||||
|
|
||||||
let titleMutable = NSMutableAttributedString(string: title, attributes: [NSAttributedStringKey.foregroundColor: appearance.titleColor, NSAttributedStringKey.font: appearance.titleFont])
|
let titleMutable = NSMutableAttributedString(string: title, attributes: [NSAttributedStringKey.foregroundColor: appearance.titleColor, NSAttributedStringKey.font: appearance.titleFont])
|
||||||
let attributedText = NSAttributedString(string: " " + text, attributes: [NSAttributedStringKey.foregroundColor: appearance.textColor, NSAttributedStringKey.font: appearance.textFont])
|
// let attributedText = NSAttributedString(string: " " + text, attributes: [NSAttributedStringKey.foregroundColor: appearance.textColor, NSAttributedStringKey.font: appearance.textFont])
|
||||||
titleMutable.append(attributedText)
|
// titleMutable.append(attributedText)
|
||||||
return titleMutable
|
return titleMutable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user