Toolbar Menu button seems to look disabled

Overview

On macOS, in a NavigationSplitView when the menu button is added to the detail view toolbar, it seems to look disabled

Environment

  • Xcode: 14.1 beta 3 (14B5033e)
  • macOS: 13.0 Beta (22A5365d)

Code:

struct ContentView: View {
    
    @State private var selectedNumber: Int?
    
    var body: some View {
        
        NavigationSplitView {
            List(0..<100, selection: $selectedNumber) { number in
                Text("cell \(number)")
            }
        } detail: {
            Text("Detail")
                .toolbar {
                    ToolbarItem {
                        Menu {
                            Button("aa") {}
                            Button("bb") {}
                        } label: {
                            Label("Add Bookmark", systemImage: "book")
                        }
                    }
                }
        }
    }
}

Steps to reproduce:

  1. Run the project on macOS
  2. Select cell 0 on the sidebar
  3. Click on the book toolbar button and notice the menu appear
  4. Select cell 1 on the sidebar

Expected Behaviour

After step 4, the book toolbar button should look prominent (like it is enabled)

Actual Behaviour

After step 4, the book toolbar button looks like it is disabled.

Screenshot

Post not yet marked as solved Up vote post of newwbee Down vote post of newwbee
1.1k views

Replies

Same here, Xcode 15.0.1, macOS 13.6.1 🥲