I tested this in the 13.3 beta (13E5086k) and this issue is not longer happening although I didn't find anything about this in the release notes https://developer.apple.com/documentation/xcode-release-notes/xcode-13_3-release-notes
Post
Replies
Boosts
Views
Activity
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