From 344fed4ee66c89f3c2a73dcf3f77d8d08d61a33b Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Tue, 7 Nov 2023 10:16:02 +0000 Subject: [PATCH] Don't allow the Placeholder Screen layout to be influenced by the keyboard (#2034) --- .../Sources/Screens/Other/PlaceholderScreenCoordinator.swift | 3 ++- changelog.d/2032.bugfix | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelog.d/2032.bugfix diff --git a/ElementX/Sources/Screens/Other/PlaceholderScreenCoordinator.swift b/ElementX/Sources/Screens/Other/PlaceholderScreenCoordinator.swift index b15b97e8a..cb9d5c04c 100644 --- a/ElementX/Sources/Screens/Other/PlaceholderScreenCoordinator.swift +++ b/ElementX/Sources/Screens/Other/PlaceholderScreenCoordinator.swift @@ -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. } } diff --git a/changelog.d/2032.bugfix b/changelog.d/2032.bugfix new file mode 100644 index 000000000..8dc93f9c4 --- /dev/null +++ b/changelog.d/2032.bugfix @@ -0,0 +1 @@ +Don't allow the Placeholder Screen layout to be influenced by the keyboard. \ No newline at end of file