Q-Mobile/QGrid

Wrapping the GridCell in a NavigationLink does not display the image

alancook opened this issue · 2 comments

struct GridCell: View {
var person: Person

var body: some View {
NavigationLink(
destination: Text("")
) {
VStack() {
Image(person.imageName)
.resizable()
.scaledToFit()
.clipShape(Circle())
.shadow(color: .primary, radius: 5)
.padding([.top, .leading, .trailing], 7)
Text(person.firstName).lineLimit(1)
Text(person.lastName).lineLimit(1)
}
.font(.headline).foregroundColor(.white)
}
}
}

Screen Shot 2019-09-15 at 2 33 21 PM

Another Apple bug it seems tried this with GridStack GItHib project with the same result.

Seem when you have a NavbigationLink you need to set the image to Render as Original this fixes the problem