mirror of
https://github.com/jellyfin/Swiftfin.git
synced 2024-12-11 16:06:09 +00:00
Cleanup
This commit is contained in:
parent
2e38084708
commit
4b0bcb9190
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user