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
This magic subscript gets called instead of wrappedValue, and the “enclosing self” gets passed in
I would try to make it a DynamicProperty in SwiftUI terms, the question is how and when (w/o requiring a special subclass). Maybe using some NSNotification.
It’s possible that I could use a more global swizzle of viewDidLoad (or some other event) and then use reflection to find the ViewModel/ObservedObject and register it lazily
I think 5.3 has that new _ reflection function which might make the Reflection library unnecessary. Didn't look at it yet
The text was updated successfully, but these errors were encountered:
Instead of
a simple:
It doesn't work yet, because it uses the subscript hack to get access to self: https://github.com/thoughtbot/CombineViewModel/blob/main/Sources/CombineViewModel/ViewModel.swift#L20
I would try to make it a DynamicProperty in SwiftUI terms, the question is how and when (w/o requiring a special subclass). Maybe using some NSNotification.
I think 5.3 has that new _ reflection function which might make the Reflection library unnecessary. Didn't look at it yet
The text was updated successfully, but these errors were encountered: