mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-23 09:51:21 +01:00
A few more run time fixes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user