Implement next unread UI functionality.

This commit is contained in:
Maurice Parker
2019-04-22 18:00:26 -05:00
parent e60fb259c2
commit b619b5f905
5 changed files with 155 additions and 32 deletions

View File

@@ -81,8 +81,9 @@ class MasterViewController: UITableViewController, UndoableCommandRunner {
if let account = representedObject as? Account {
if let node = navState.rootNode.childNodeRepresentingObject(account) {
let sectionIndex = navState.rootNode.indexOfChild(node)!
let headerView = tableView.headerView(forSection: sectionIndex) as! MasterTableViewSectionHeader
headerView.unreadCount = account.unreadCount
if let headerView = tableView.headerView(forSection: sectionIndex) as? MasterTableViewSectionHeader {
headerView.unreadCount = account.unreadCount
}
}
return
}