Only I do:
.sheet(isPresented: self.$showMoveItemSheet) {
MoveItemsView(items: Array(self.selectedItems), from: self.room)
.modelContext(self.context)
}
.modelContext(self.context)
and then in the MoveItemsView
I have
@Environment(\.modelContext) var context
<pause> Hm, I'm setting the Query
programmatically during init
, would that be the cause? 'cause it does seem to work...