Change selected table row text to be white. Issue #693

This commit is contained in:
Maurice Parker
2019-08-03 16:25:35 -05:00
parent 4ece4173ba
commit 02575c31fe
5 changed files with 52 additions and 1 deletions

View File

@@ -44,6 +44,17 @@ class MasterTimelineTableViewCell: UITableViewCell {
}
}
override func setSelected(_ selected: Bool, animated: Bool) {
let selectedTextColor = selected ? AppAssets.selectedTextColor : UIColor.label
titleView.textColor = selectedTextColor
summaryView.textColor = selectedTextColor
dateView.textColor = selectedTextColor
feedNameView.textColor = selectedTextColor
unreadIndicatorView.isSelected = selected
super.setSelected(selected, animated: animated)
}
override func sizeThatFits(_ size: CGSize) -> CGSize {
let layout = updatedLayout(width: size.width)
return CGSize(width: size.width, height: layout.height)