this doesn't work. tested on ios16+
Post
Replies
Boosts
Views
Activity
Isn't your StoreModel still a ViewModel just named differently though?
I have a single Hashable enum & a single .navigationDestination for routes and it's still crashing.
Except you cannot access environment objects inside your view model, store, or however you wanna call it...
@malc "View struct hierarchy with its dependency tracking and diffing is the view model already" what if I work on an iPhone, iPad, and MacOS app? 3 different UIs and the same business logic? With MVVM I'd have 3 different Views that share the same VM. How would I achieve that with MV(or whatever it is) approach? Also how do you unit test your logic if it's inside a View?
that might be swiftdata/coredata if you're using those. It can be anything basically...
I have no issues when I build in Xcode 15.4, as soon as I build in Xcode16 I face the same issue.
Did you submit feedback?
Clearly it's not fixed. How is this the accepted answer?
I'm building in xcode 15.4 until they fix this.
not happening if you build the project in xcode 15.4. I currently have xcode cloud setup to build in 15.4 until they fix this bug(hopefully in xcode 16.1)...