SwipeActions
SwipeActions copied to clipboard
Automatic closing does not work with LazyVStack items that are offscreen
Using the state parameter as described in the documentation, we can automatically close swiped items when a new item is swiped, however, this doesn't work in a LazyVStack.
To repro:
- embed a LazyVStack in a ScrollView.
- Then add enough items to the LazyVStack so that it overflows the screen.
- Scroll to the bottom item and open it's swipe menu.
- Scroll the bottom item off the screen and swipe a new item
- Scroll to the bottom item and notice that its swipe menu is still open (so now there are two items with swipe menus open)
@gomigbg thx for your report👍🏻 what's iOS version for the repro?:)
I've reproduced this on iOS 17
@gomigbg yeap, confirmed, thx for reporting!
@c-villain Great, thanks for having a look at it!
fix in 0.3.4