Learn Courses My Dashboard

View goes back to Parent view after CRUD operation in Child View


I have 2 Views Main View → Child View
The Main View fetch data from CoreData and store it to a @State variable array
The child access the same entity and do the CRUD operation
what happen now is, whenever I add new object to the entity in the child data
the display goes back to the Main(Parent) View automatically

I would like to ask for advice regarding this, or if you know any similar sample codes which I can refer to.

thank you