programmatic position change not animated #75
-
When I programmatically change the position from middle/bottom to top, it works, but it's not animated. As animation option, I have set
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Have you tried using withAnimation(.spring()) {
self.bottomSheetPosition = .top
} when setting the bottom sheet position programmatically? |
Beta Was this translation helpful? Give feedback.
-
that worked, thanks! may still be an issue though because in the sample code it doesn't look like this extra animation wrapper shouldn't be needed... |
Beta Was this translation helpful? Give feedback.
Have you tried using
when setting the bottom sheet position programmatically?