DatePicker 'wheel' style appears to show animations #540
Unanswered
dmeehan1968
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm getting the following snapshot when I've captured a view that contains a DatePicker(...).datePickerStyle(.wheel).
The capture code is:
As you can see it appears that the wheel animations are still in progress. I've tried wrapping the strategy in
.wait(for: 1.5, on:...)
but the rendered snapshot is identical. I don't seem to be able to locate any other way of disabling animations for the sake of the snapshot, if indeed that's what the problem is.What's doubly interesting is that as far as preview and the simulator it concerned, this view doesn't have animations enabled - i.e. I'm not seeing any animation of the wheel when the view is configured with a date and time as the initial state. So I'm not sure what state the snapshot is actually representing - it should be showing 13:00 PM as it does in the simulator.
Has anyone else encountered this problem or have a suggestion?
Beta Was this translation helpful? Give feedback.
All reactions