Reputation: 280
I'm building a messaging app and trying to create a messageRead indicator similar to the blue dot in iMessage. When the user selects a row, I set the UIView.background to clear. However, the cell doesn't update upon returning from the detail view. I feel like I missing something obvious, but can't figure it out.
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let cell = tableView.cellForRow(at: indexPath) as! MessagePreviewCell
cell.customView.backgroundColor = UIColor.clear
}
Upvotes: 0
Views: 28