Fixes #617 - Prevent navigation bar breaking when backgrounding the app froma a split view

This commit is contained in:
Stefan Ceriu
2023-09-04 14:45:56 +03:00
committed by Stefan Ceriu
parent d182202c78
commit 1a12c729de
2 changed files with 27 additions and 4 deletions
@@ -37,7 +37,7 @@ struct PlaceholderScreen: View {
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background()
.environment(\.backgroundStyle, AnyShapeStyle(Color.compound.bgCanvasDefault))
.toolbar(.hidden, for: .automatic)
.ignoresSafeArea(edges: .top)
}
@ViewBuilder