All of the code is in the SwiftUI tutorial at the URL provided above. Start with the BuildingListsAndNavigation.xcodeproj in the Complete folder of the downloaded project. I have just now repeated the changes shown above starting with a new download, with the same results. Note that the addition goes before the View, which is completely replaced.
Topic:
App & System Services
SubTopic:
Maps & Location
Tags: