Open WedgeSparda opened 1 year ago
I'm running into the same issue with scrolling - I was getting inconsistent behaviour when the snapshot tests on CI were incorrectly scrolling even though on local machines they weren't.
I unfortunately had to turn off the scrolling for the snapshot tests completely.
Would be great if there was a solution to run onAppear
code for snapshots.
Hi, I'm snapshot testing a SwiftUI view which contains a
ScrollView
inside aScrollViewReader
. On theonAppear
of the ScrollView I'm using the scrollReader to scroll to the bottom using a @NameSpaceThe scrollview is disabled by default and its purpose is to set the content aligned to the bottom.
Is working correctly on the previews, simulator and device, but the snapshot is not performing the scroll, even using the
.wait
strategy and cheching with a breakpoint thatscrollReader.scrollTo(bottomID)
is being called.What I'm doing wrong?
Thanks for your time