paololeonardi / WaterfallGrid

A waterfall grid layout view for SwiftUI.
MIT License
2.39k stars 117 forks source link

unable to show all imgs #69

Closed skltfz closed 1 year ago

skltfz commented 1 year ago

I have tried to put the waterfall grid at class B and then I call it by call A by passing filterMode to class B init

In the init of class B, the dataset will change based on class A filterMode, it changes sorting or filter of this dataset.

The issue is:

I found that the waterfall grid's items are displayed incorrectly when I toggled the filterMode

But once I trigger an action, it can be rendered correctly again.

are there some cache logic in the waterfall grid causing this issue?

Thanks