PushTransition

A transition that when added to a view will animate the view's insertion by moving it in from the specified edge while fading it in, and animate its removal by moving it out towards the opposite edge and fading it out.

StructureiOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+PushTransition in SwiftUI