SwiftUI adding custom UIViewControllerTransitioningDelegate : <p>I'm trying to create <code>SwiftUI</code> custom segue animation, like this </p>

<p><a href="https://i.stack.imgur.com/RLLSH.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/RLLSH.gif" alt="enter image description here"></a> </p>

<p>I try to chain the animation to <code>Destination</code> but no use, it just animates inside the contents of <code>Destination</code> after presentation animation finish.</p>

<pre><code>struct ContentView : View {
    var body: some View {
        NavigationView {
            VStack {
                List {
                    NavigationButton(destination: withAnimation{
                        Destination()
                        }.frame(width: 300, height: 300)
                         .animation(.basic())) {
                            CellView()
                        }
                    }
                }
            }

    }
}

struct CellView : View {
    var body: some View {
        VStack {
            Text("Cell")
        }
    }
}

struct Destination : View {
    var body: some View {
        VStack {
            Text("GFD")
        }
    }
}
</code></pre>
