36.9 Asymmetrical Transitions
By default, SwiftUI will simply reverse the specified insertion transition when removing a view. To specify a different transition for adding and removing views, the transition can be declared as being asymmetric. The following transition, for example, uses the scale transition for view insertion and sliding for removal:
.transition(.asymmetric(insertion: .scale, removal: .slide))