I have a @BindingState which is accessed in a Component.
PickerSymbolSheet(isSelecting: viewStore.$isSelectingSymbol) { selectedSymbol in
viewStore.send(.setSymbol(selectedSymbol))
}
I wanted to set isSelectingSymbol
manually via a button tap. I used this (and it works)
viewStore.send(.binding(.set(\.isSelectingSymbol, true)))
but it gives me a deprecated warning:
'set' is deprecated: For improved safety, bindable properties must now be wrapped explicitly in 'BindingState', and accessed via key paths to that 'BindingState', like '\.$value'
What's the updated way of doing this?