You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
struct CollectionCell: View {
var type: PokemonTypes
var body: some View {
HStack {
Image(type.imageName)
Divider()
GeometryReader { geometry in
GridStack(minCellWidth: geometry.size.width / 2,
spacing: 0,
numItems: self.type.superEffectiveAgainst.count) { index, cellWidth in
Image(self.type.superEffectiveAgainst[index].imageName)
.frame(width: cellWidth)
}
}
}
}
}
And it looks like that in the preview:
The problem is that it shows only one row and I can scroll inside the table row when there are more than 2 items.
How can I expand the GridStack to its full height?
Thanks!
The text was updated successfully, but these errors were encountered:
My cell looks like this:
And it looks like that in the preview:
The problem is that it shows only one row and I can scroll inside the table row when there are more than 2 items.
How can I expand the GridStack to its full height?
Thanks!
The text was updated successfully, but these errors were encountered: