Cleanup
This commit is contained in:
parent
2e38084708
commit
4b0bcb9190
|
@ -25,7 +25,7 @@ struct ItemNavigationView: View {
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ItemView(item: item)
|
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