Make the summary text start right after the title rather than on the next line.
This commit is contained in:
parent
6e875888c4
commit
28f001b3ed
|
@ -108,7 +108,7 @@ 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: "\n" + 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…
Reference in New Issue