Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bottom toolbar covers floating panel #677

Open
CalebRas opened this issue Apr 10, 2024 · 1 comment
Open

Bottom toolbar covers floating panel #677

CalebRas opened this issue Apr 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@CalebRas
Copy link
Collaborator

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

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

@CalebRas CalebRas added the bug Something isn't working label Apr 10, 2024
@dfeinzimer
Copy link
Collaborator

Potential duplicate of #518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants