SwiftUI Mixed-state toggles & pickers - WWDC2022 session 10052

I am trying to get mixed-state toggles and pickers to work. I have watched the session (the discussion starts around 17:55). I have copied the example code from the session and I get the same compile error I get with my own code:

Cannot convert value of type '[Binding<Bool>]' to expected argument type 'Binding<Bool>'

I also can not find a Toggle init that is specialized for a Sequence or Array of bindings to values. Did this SwiftUI feature get cut? Has anyone got this working? Any help is greatly appreciated.

Replies

The API for mixed-state Toggle and Picker was changed based on feedback.

Here's the documentation for the initializers you can use to create them: