Skip to content

Commit a72b3ae

Browse files
author
Beata Lin
committed
Keep selected cell color (foreground)
1 parent 57a6c06 commit a72b3ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/Internal/BTTableView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class BTTableView: UITableView, UITableViewDelegate, UITableViewDataSource {
106106
if self.configuration.shouldKeepSelectedCellColor == true {
107107
cell.backgroundColor = self.configuration.cellBackgroundColor
108108
cell.contentView.backgroundColor = ((indexPath as NSIndexPath).row == selectedIndexPath) ? self.configuration.cellSelectionColor : self.configuration.cellBackgroundColor
109+
cell.textLabel?.textColor = ((indexPath as NSIndexPath).row == selectedIndexPath) ? self.configuration.selectedCellTextLabelColor : self.configuration.cellTextLabelColor
109110
}
110111
}
111112
}

0 commit comments

Comments
 (0)