Skip to content

Commit

Permalink
Always sets action items on current view controller and pageboy view …
Browse files Browse the repository at this point in the history
…controller
  • Loading branch information
pietrocaselani committed Jan 13, 2019
1 parent 39bb91f commit a7203b8
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,8 @@ final class ShowsProgressViewController: UIViewController {
self?.presenter.toggleDirection()
}).disposed(by: disposeBag)

if let pageboy = parentPageboy {
pageboy.navigationItem.rightBarButtonItems = [filterItem, directionItem]
} else {
navigationItem.rightBarButtonItems = [filterItem, directionItem]
}
parentPageboy?.navigationItem.rightBarButtonItems = [filterItem, directionItem]
navigationItem.rightBarButtonItems = [filterItem, directionItem]
}

private func showOptions(sorting: [String], filtering: [String],
Expand Down

0 comments on commit a7203b8

Please sign in to comment.