NavigationLink not navigating to destination with .id - Android(36)
Open
@aabewhite is already working on this.
Since Jan 9, 2026.
navigation
- Dominant language
- Swift
- Stars
- 330
- Forks
- 76
- Avg merge
- 3h 6m
- Merged PRs (30d)
- 1
Description
I noticed on Android my navigation links were not working as expected (they did nothing).
This is within a navigation stack and list just like the example we have for HelloSkip.
ForEach(items) { item in
EntryListItemView(item: item)
}
On further testing the following works if I set the id to be the title, but it doesn't work for the id.
This is on Android 36, all examples work as expected on iOS.
struct ItemListView : View {
let items: [EntryItem]
let test: [String] = ["title1", "title2"]
var body: some View {
List {
ForEach(test, id: \.self) { item in
NavigationLink(destination: Text("Details for \(item)")) {
Text("testing for \(item)")
}
}
ForEach(items, id: \.self.title) { item in
NavigationLink(destination: Text("Test Title")) {
Text("Test TITLE")
}
}
ForEach(items, id: \.self.id) { item in
NavigationLink(destination: Text("Test UUID")) {
Text("Test UUID")
}
}
}
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.