Sorry if I didn't make this clear, but your code from before should look like this:
ForEach(ImagesList, id: \.id) { images in
NavigationLink {
LandCard()
} label: {
ImageCard(images: images)
}
}
Currently you are showing the ImageCard view twice, the second as a NavigationLink, but I assume that you only need it once.
On your second problem, the height of the ImageCard depends on how you create it. Can you show the code for the ImageCard view so that we can understand what is causing the issue?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: