iOS 27 Beta Toggle in iOS Navigation Toolbar with custom label always appears selected

I've filed this as FB23714849 too, but I'm running into an issue with the Toggle component when displayed in a toolbar and a more complex label is used. This worked fine in iOS 26.

Minimal repro example + screenshot:

struct ContentView: View {
    
    @State var toggleState1 = false
    @State var toggleState2 = false
    
    var body: some View {
        NavigationStack {
            Text("Hello, world!")
                .toolbar {
                    
                    // THIS ITEM (leading) WORKS AS EXPECTED
                    ToolbarItem(placement: .topBarLeading) {
                        Toggle("Working", systemImage: "heart", isOn: $toggleState2)
                    }
                    
                    // THIS ITEM (trailing) DOES NOT TOGGLE AS EXPECTED
                    // It always appears enabled even when it should not
                    ToolbarItem(placement: .topBarTrailing) {
                        Toggle(isOn: $toggleState1) {
                            Image(systemName: "star")
                        }
                    }
                }
        }
    }
}

My ultimate goal is to have a menu here where I can make the menu's label appear as a selected toggle (e.g. to display that one of a few filters is enabled).

This is the case as of iOS Developer Beta 3 (and I believe the prior iOS 27 betas).

Thanks for the post.

And thanks for providing the bug. You can see the status of your feedback in Feedback Assistant. There, you can track if the report is still being investigated, has a potential identifiable fix, or has been resolved in another way. The status appears beside the label "Resolution." We're unable to share any updates on specific reports on the forums.

For more details on when you'll see updates to your report, please see What to expect after submission.

This is very interesting pattern regardless of the bug Toggle rows inside a Menu render correctly with checkmarks, and you control the outer label's active appearance rather than depending on the system.

Thanks

Albert  WWDR

iOS 27 Beta Toggle in iOS Navigation Toolbar with custom label always appears selected
 
 
Q