Skip to content

Commit

Permalink
Don't allow the Placeholder Screen layout to be influenced by the key…
Browse files Browse the repository at this point in the history
…board (#2034)
  • Loading branch information
pixlwave authored Nov 7, 2023
1 parent 6adedaf commit 344fed4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ struct PlaceholderScreen: View {
}
.background()
.environment(\.backgroundStyle, AnyShapeStyle(Color.compound.bgCanvasDefault))
.ignoresSafeArea(edges: .top)
.ignoresSafeArea(edges: .top) // Remain vertically centred even if there's a navigation bar.
.ignoresSafeArea(.keyboard) // Specifically for the lock screen, but make sense everywhere.
}
}

Expand Down
1 change: 1 addition & 0 deletions changelog.d/2032.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Don't allow the Placeholder Screen layout to be influenced by the keyboard.

0 comments on commit 344fed4

Please sign in to comment.