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

iOS 16: Toolbar not showing up #4325

Closed
osy opened this issue Aug 20, 2022 · 1 comment
Closed

iOS 16: Toolbar not showing up #4325

osy opened this issue Aug 20, 2022 · 1 comment
Labels
interface Design, UX/UI issues iOS Issues specific to iOS platform.
Milestone

Comments

@osy
Copy link
Contributor

osy commented Aug 20, 2022

No description provided.

@osy osy added interface Design, UX/UI issues iOS Issues specific to iOS platform. labels Aug 20, 2022
@osy osy added this to the v4.0 milestone Aug 20, 2022
@osy
Copy link
Contributor Author

osy commented Sep 3, 2022

This is a SwiftUI bug (filed FB11437811)

Reproducible example:

struct ContentView: View {
    var body: some View {
        NavigationView {
            List {
                NavigationLink("Destination") {
                    Text("Hello World")
                        .toolbar {
                            ToolbarItem(placement: .bottomBar) {
                                Button {
                                    
                                } label: {
                                    Text("Test")
                                }
                            }
                        }
                }
            }
        }
    }
}

Screenshot 2022-09-02 at 4 34 26 PM

Screenshot 2022-09-02 at 4 33 36 PM

Workaround is to rewrite ContentView to use NavigationSplitView (only available on iOS 16+)

@osy osy closed this as completed in 1728953 Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interface Design, UX/UI issues iOS Issues specific to iOS platform.
Projects
None yet
Development

No branches or pull requests

1 participant