I have a tasks/notes app in the form of a list that when I add a task, I give it a title, for example “Groceries". I want to be able to click “groceries" and for there to appear a new list with new notes that would be such as beverages or food. Such notes would be added by the user.
Then in the main section if I want to add a new task or notes such as “Chores” ,when I click on chores it takes me to a new page in which the user can add chores.
However, right now I only know how to take it to the same view. So in other words, if i click on “groceries", I will see the same as if I click on “Chores”. In my app, it takes me to exampleView as you can see below.
My app is made around core data, what I essentially want is for when I click a note such as groceries or chores, I can have a page in which I store new notes.
How can I make it so when I click on a note on the main page, it takes me to a new page?
Any advice, tutorials, or anything helps. Thank You.
ForEach(notesVM.notes, id: \.id){note in
NavigationLink(destination: exampleView()){
NotesCell(note: note)
}
This is what I Have:
This is what I Want: