A few more run time fixes

This commit is contained in:
John Holdsworth
2019-07-09 00:30:47 +01:00
parent 17a2f3b196
commit a96bac0796
5 changed files with 10 additions and 5 deletions

View File

@@ -20,7 +20,8 @@ struct LandmarkList: View {
ForEach(userData.landmarks) { landmark in
if !self.userData.showFavoritesOnly || landmark.isFavorite {
NavigationLink(
destination: LandmarkDetail(landmark: landmark)) {
destination: LandmarkDetail(landmark: landmark)
.environmentObject(self.userData)) {
LandmarkRow(landmark: landmark)
}
}