Core Data: Beyond the Basics, Episode 10: Challenge - Displaying Tags | Kodeco

In the second part of the challenge, update the user interface to display the tags you added in the last challenge!


This is a companion discussion topic for the original entry at https://www.kodeco.com/32317039-core-data-beyond-the-basics/lessons/10

There are two things that I am not sure why are used in the solution for this video:

  1. in TagsView you are getting the viewContext using (@Environment(.managedObjectContext) var viewContext) but it is not used because we pass the tags from LaunchesView.

  2. in TagsView we are embedding the List on a VStack and adding the navigationBarTitle on VStack it will work the same if we add it directly on the List using .navigationTitle(β€œTags”) is there a specific reason we are using a VStack here?