Open CalebRas opened 7 months ago
Potential duplicate of #518
After researching this a bit, I believe this is because FloatingPanel
uses overlay(alignment:content:)
, which doesn't seem to allow a way to present content over system UI like the toolbar.
Long term we can probably look at wrapping sheets directly at compact widths.
Issue When opening a
floatingPanel
on a view with a bottom toolbar, the toolbar overlays the floating panel. This means that content at the bottom of the panel will be hidden behind the toolbar.Reproducible Code
Reproducible Code
```swift struct ContentView: View { @State private var isPresented = false var body: some View { EmptyView() .toolbar { ToolbarItem(placement: .bottomBar) { Button("Show Panel") { isPresented.toggle() } } } .floatingPanel(isPresented: $isPresented) { Text("Placeholder") } } } ```