Skip to content

Commit

Permalink
Re-set ghost style when switching filter tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScoutHarris committed Feb 4, 2020
1 parent dce9515 commit 80c70f1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@ class PostListViewController: AbstractPostListViewController, UIViewControllerRe
filterTabBariOS10TopConstraint.isActive = false
}


override func selectedFilterDidChange(_ filterBar: FilterTabBar) {
updateGhostableTableViewOptions()
super.selectedFilterDidChange(filterBar)
}


/// Update the `GhostOptions` to correctly show compact or default cells
private func updateGhostableTableViewOptions() {
let ghostOptions = GhostOptions(displaysSectionHeader: false, reuseIdentifier: postCellIdentifier, rowsPerSection: [10])
Expand Down

0 comments on commit 80c70f1

Please sign in to comment.