SwiftUI Tutorials is failing...

Hi! I followed the Apple's SwiftUI Tutorials"LandmarksApp".But When I resume preview at "LandmarkRow.swift", landmarksApp was clashed by unexpected reason. I couldn't find why this problem was happened. Please tell me how to solve this problem.

↓My Mac details

MacBookPro 13inch (2020-M1) 16GB memory,512GB SSD macOS Monterey 12.2.1, Xcode version 13.2.1

Answered by Claude31 in 707154022

There are many places where landMark sample code has issues (because SwiftUI has changed).

Please tell more precisely at what exact step of the tutorial you are experiencing the crash.

Maybe

id: \.self was missing here in List()

Please show code.

Accepted Answer

There are many places where landMark sample code has issues (because SwiftUI has changed).

Please tell more precisely at what exact step of the tutorial you are experiencing the crash.

Maybe

id: \.self was missing here in List()

Please show code.

SwiftUI Tutorials is failing...
 
 
Q