File tree Expand file tree Collapse file tree
Sources/DashUIKit/Components/BottomSheet Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,14 @@ public struct BottomSheet<Content: View>: View {
7575
7676 Group {
7777 if fillsHeight {
78- sheet. edgesIgnoringSafeArea ( . bottom)
78+ // `.container` rather than every region: the point is to let the
79+ // sheet's background run under the home indicator, and
80+ // `edgesIgnoringSafeArea` — like `ignoresSafeArea(.all)` — also
81+ // swallows `.keyboard`, which switches off SwiftUI's keyboard
82+ // avoidance for the whole sheet. Hosts with a text field then
83+ // find their content pinned under the keyboard with no way to
84+ // scroll to it.
85+ sheet. ignoresSafeArea ( . container, edges: . bottom)
7986 } else {
8087 // Publish the natural content height for `.selfSizingSheet()`. The bottom safe area is
8188 // intentionally NOT ignored here, so the measured height excludes the home-indicator
You can’t perform that action at this time.
0 commit comments