-
-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS 17.0 Unexpected Animation Behavior #143
Comments
You can work around this issue by using |
Thanks for your response. This is in fact the solution I went with in the end and found it be working well. |
Thanks for the solution guys - in attempting to reproduce the fix, I couldn't see a change in the animation when setting the customAnimation after the onAppear. Am I missing something?
|
You can use the Task Modifier while adding a Task.sleep().
This will let the View render properly and then apply your animation without running into weird Animation issues. |
Describe the bug
With devices and simulators running iOS 17.0, the bottom bottom sheet animates from the top left to the bottom when the view appears. This is only preventable when setting the custom animation to
nil
. This results in an undesirable animation when the bottom sheet appears. However, with the animation value ofnil
the bottom sheet will end up janky transition on resize.Minimal reproduce-able code
Using the default values for the
.bottomSheet
modifier and an animation value other thannil
.Expected behavior
I would expect only the resizing of the bottom sheet to animate, not the entire sheet itself (especially on appear).
Screenshots
N/a.
Target version
Additional context
Works as expected in iOS 16.4.
The text was updated successfully, but these errors were encountered: