Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Waterfall Grid Sample App not displaying full content in CardsGrid when 1 or 2 assets in grid #53

Open
jcicero02 opened this issue Jan 20, 2021 · 3 comments

Comments

@jcicero02
Copy link

jcicero02 commented Jan 20, 2021

When "cards" count equals 1 or 2, the grid does not show the images of either asset. Only the title and subtitle get displayed.

Example when card count = 1
image2

Example when card count = 2
image1

Example of card count = 3
image0

@inc-ali
Copy link

inc-ali commented Apr 16, 2021

I encounter this problem, when the grid only has a single row - no matter how many items (e.g landscape on iPad)

Also:
If you rotate the device from landscape to portrait and back to landscape, the items are displayed like expected.

@lincelon
Copy link

lincelon commented Jun 5, 2021

Hi, I also encounter this problem. Just use
.fixedSize(horizontal: false, vertical: true) for your view inside a WaterfallGrid(content: id:)

@markrachapoom
Copy link

@lincelon Your comment is really useful, It works well for me. Could you explain why adding that line helps?

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

5 participants