When I run Simulator on my iPhone 15 and iPhone device, the dynamic list of NavigationLink rows is created as expected. However, when I run the same code on my iPhone device, the dynamic list of NavigationLink rows is not made.
My code snippet: List { ForEach(searchResults, id: .self) { name in NavigationLink { Text(name) Button(action: { print("Button Clicked!") dynamicObjectsHandler(thisObjectName: name)
}) {
Text("Toggle Object \(searchText)")
.navigationTitle("Dynamic Guiding Objects")
}
} label: {
Text(name)
}
}
}
Additional information: iOS version: 17.6 iPhone 14 Pro iOS Deployment Target 17.5 Xcode version 15.4