How to make animated transtion between TabViews

like this:

Using SwiftUI. Please help, I tried so many things

@EngOmarElsayed

The first thing to note is that in the video it looks like a custom tab bar has been set up. It does not look like the default TabView that SwiftUI offers.

With that in mind, the method you use to trigger the switch from one view to another should be done within a withAnimation { } closure.

On each view that is shown, add a transition modifier to the View to make it do what you want. For example look at this example asymmetric transition from Paul Hudson:

So basically I will show and hidde the other views depending on the button pressed, without using TabView