mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-01 09:50:16 +00:00
moves nav bar config to SceneCoordinator
This commit is contained in:
1 parent
7249451c99
commit
90b41995eb
4 files changed
+14
-58
No files matched your search
@@ -93,9 +93,7 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
|
||||
refreshControl = UIRefreshControl()
|
||||
refreshControl!.addTarget(self, action: #selector(refreshAccounts(_:)), for: .valueChanged)
|
||||
|
||||
|
||||
configureToolbar()
|
||||
configureNavbar()
|
||||
|
||||
refreshProgressView = Bundle.main.loadNibNamed("RefreshProgressView", owner: self, options: nil)?[0] as? RefreshProgressView
|
||||
refreshProgressItemButton = UIBarButtonItem(customView: refreshProgressView!)
|
||||
@@ -631,21 +629,7 @@ private extension MasterTimelineViewController {
|
||||
toolbarItems?.insert(refreshProgressItemButton, at: 2)
|
||||
}
|
||||
|
||||
func configureNavbar() {
|
||||
let scrollEdge = UINavigationBarAppearance()
|
||||
scrollEdge.configureWithOpaqueBackground()
|
||||
scrollEdge.shadowColor = nil
|
||||
scrollEdge.shadowImage = UIImage()
|
||||
|
||||
let standard = UINavigationBarAppearance()
|
||||
standard.shadowColor = .opaqueSeparator
|
||||
standard.shadowImage = UIImage()
|
||||
|
||||
navigationController?.navigationBar.standardAppearance = standard
|
||||
navigationController?.navigationBar.compactAppearance = standard
|
||||
navigationController?.navigationBar.scrollEdgeAppearance = scrollEdge
|
||||
navigationController?.navigationBar.compactScrollEdgeAppearance = scrollEdge
|
||||
}
|
||||
|
||||
|
||||
func resetUI(resetScroll: Bool) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user