Post

Replies

Boosts

Views

Activity

Reply to Has the behavior of asymmetric transitions changed in SwiftUI 4 / iOS 16?
I am in a similar situation. I'm managing a view transition using asymmetric move animations which are triggered by a bottom tab view. When I change direction, I toggle the two animations. This is an example let previousTab = selectedTab self.tabAnimationEdge = newTab > previousTab         ? .trailing : .leading self.tabAnimationEdgeOpposite = self.tabAnimationEdge == .leading ? .trailing : .leading self.selectedTab = newTab Now with iOS 16 (and Xcode 14.0.1 when I submit this comment) it seems the removal animation is not updated in time and iOS will use the old one. I found that delaying the selected tab update with DispatchQueue.main.asyncAfter and a very small delay (for example 0.05) will hide this strange behaviour.
Oct ’22