Revert "WIP: Title tags"

This commit is contained in:
Maurice Parker
2020-04-24 20:24:24 -05:00
committed by GitHub
parent 8b584d0000
commit 86fb98c17b
14 changed files with 20 additions and 299 deletions

View File

@@ -148,7 +148,7 @@ private extension MasterTimelineTableViewCell {
func updateTitleView() {
titleView.font = MasterTimelineDefaultCellLayout.titleFont
titleView.textColor = labelColor
updateTextFieldAttributedText(titleView, cellData?.attributedTitle)
updateTextFieldText(titleView, cellData?.title)
}
func updateSummaryView() {
@@ -170,19 +170,6 @@ private extension MasterTimelineTableViewCell {
setNeedsLayout()
}
}
func updateTextFieldAttributedText(_ label: UILabel, _ text: NSAttributedString?) {
var s = text ?? NSAttributedString(string: "")
if let fieldFont = label.font, let color = label.textColor {
s = s.adding(font: fieldFont, color: color)
}
if label.attributedText != s {
label.attributedText = s
setNeedsLayout()
}
}
func updateFeedNameView() {
switch cellData.showFeedName {