@RΔSΞC
Thank's a lot for your sample project! It saved my day!
Your solution resolves the problem with ease.
If everyone comes by with the same problem, just check out the sample project on GitHub.
One just has to pass the FetchedResult from the parent view as an argument for the child view's call. And in the child view, the local FetchedResult attribute of the struct is just a stand-in for the passed in parent view FetchedResult.
But this code at the end of the instantiation of the child view seems unnecessary to me:
AddNewItemView(items: self.items).environment(\.managedObjectContext, self.managedObjectContext)
Post
Replies
Boosts
Views
Activity
I have the same issue here on XCode Beta 6 (12A8189n).
When:
just having launched the app and then tapping the EditButton() as a first action.
having created a new list item in a modal child view.
The strange thing is that after manipulating the data of the same list by other functions that do nothing else than 2. the EditButton works just fine afterward.
Any ideas?