This commit is contained in:
Ethan Pippin 2021-08-31 23:49:31 -06:00
parent 2e38084708
commit 4b0bcb9190

View File

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