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 - } -}