Post

Replies

Boosts

Views

Activity

Reply to @FocusedBinding
I wonder how I would make it work when using an optional, like: struct FocusedDeckKey : FocusedValueKey {     typealias Value = Binding<DeckViewModel?> } Because then my commands look like: struct AppCommands: Commands {     @FocusedBinding(\.currentDeck) private var currentDeck: DeckViewModel? } 👆💥 Type of expression is ambiguous without more context In my case the value I am trying to use is an optional selection, so it's possible to be nil
Jun ’20