From 4b0bcb9190f5abc640a669593ceefbdf472468fc Mon Sep 17 00:00:00 2001 From: Ethan Pippin Date: Tue, 31 Aug 2021 23:49:31 -0600 Subject: [PATCH] Cleanup --- JellyfinPlayer/ItemView/ItemView.swift | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/JellyfinPlayer/ItemView/ItemView.swift b/JellyfinPlayer/ItemView/ItemView.swift index 7e14fb9f..e3669681 100644 --- a/JellyfinPlayer/ItemView/ItemView.swift +++ b/JellyfinPlayer/ItemView/ItemView.swift @@ -25,7 +25,7 @@ struct ItemNavigationView: View { var body: some View { ItemView(item: item) - .navigationBarTitle("", displayMode: .large) + .navigationBarTitle("", displayMode: .inline) } } @@ -67,19 +67,3 @@ fileprivate struct ItemView: View { } } } - -extension UINavigationBar { - static func changeAppearance(clear: Bool) { - let appearance = UINavigationBarAppearance() - - if clear { - appearance.configureWithTransparentBackground() - } else { - appearance.configureWithDefaultBackground() - } - - UINavigationBar.appearance().standardAppearance = appearance - UINavigationBar.appearance().compactAppearance = appearance - UINavigationBar.appearance().scrollEdgeAppearance = appearance - } -}