mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Don't allow the Placeholder Screen layout to be influenced by the keyboard (#2034)
This commit is contained in:
@@ -42,7 +42,8 @@ struct PlaceholderScreen: View {
|
|||||||
}
|
}
|
||||||
.background()
|
.background()
|
||||||
.environment(\.backgroundStyle, AnyShapeStyle(Color.compound.bgCanvasDefault))
|
.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.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Don't allow the Placeholder Screen layout to be influenced by the keyboard.
|
||||||
Reference in New Issue
Block a user