Post not yet marked as solved
Post marked as unsolved with 3 replies, 733 views
Going through some learning materials on SwiftUI, I'm trying to wrap a view inside a NavigationLink but it appears unresolved.struct LandmarkList: View {
var body: some View {
NavigationView {
List(landmarkData) { landmark in
NavigationLink(destination: LandmarkDetail()) {
LandmarkRow(landmark: landmark)
}
}.navigationBarTitle(Text("Landmarks"))
}
}
}This is the error I get:Use of unresolved identifier 'NavigationLink'; did you mean 'NavigationView'?