Esri / arcgis-maps-sdk-swift-toolkit

Mapping components that will simplify your Swift app development with the ArcGIS Maps SDK for Swift.
https://developers.arcgis.com/swift
Apache License 2.0
29 stars 9 forks source link

Bottom toolbar covers floating panel #677

Open CalebRas opened 7 months ago

CalebRas commented 7 months ago

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.

Simulator Screenshot - iPhone 15 Pro - 2024-04-10 at 10 28 54

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") } } } ```

dfeinzimer commented 7 months ago

Potential duplicate of #518

dfeinzimer commented 3 months ago

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.