Posts

Post not yet marked as solved
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'?
Posted Last updated
.