You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a class with ObservableObject, we could use @FocusedObject and access its projectedValue through $ to get a binding. The replacement for @FocusedObject when using @Observable is @FocusedValue, but it does not have a projectedValue ($), so there is no way to get a binding to the class.
Description
When using a class with
ObservableObject
, we could use@FocusedObject
and access itsprojectedValue
through$
to get a binding. The replacement for@FocusedObject
when using@Observable
is@FocusedValue
, but it does not have aprojectedValue
($
), so there is no way to get a binding to the class.I previously had this with
ObservableObject
:I assumed I could move to this when using
@Observable
:But it does not provide a binding through
$
... It should!As a workaround, I passed the binding into a
FocusedScene
value, but that doesn't seem like the proper solution.For context, the
??
in the examples work with the binding because I have this:The text was updated successfully, but these errors were encountered: