mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
moves nav bar config to SceneCoordinator
This commit is contained in:
@@ -101,7 +101,6 @@ class ArticleViewController: UIViewController, MainControllerIdentifiable {
|
||||
])
|
||||
fullScreenTapZone.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(didTapNavigationBar)))
|
||||
navigationItem.titleView = fullScreenTapZone
|
||||
configureNavbar()
|
||||
|
||||
articleExtractorButton.addTarget(self, action: #selector(toggleArticleExtractor(_:)), for: .touchUpInside)
|
||||
toolbarItems?.insert(UIBarButtonItem(customView: articleExtractorButton), at: 6)
|
||||
@@ -234,22 +233,6 @@ class ArticleViewController: UIViewController, MainControllerIdentifiable {
|
||||
return currentWebViewController?.webView?.scrollView
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
// MARK: Notifications
|
||||
|
||||
|
||||
Reference in New Issue
Block a user