From 692e7e1b9edc4529a8aa1d1d17d1f95f6b4897db Mon Sep 17 00:00:00 2001
From: Dariusz Rybicki <dariusz@elixxir.io>
Date: Wed, 1 Jun 2022 15:57:18 +0200
Subject: [PATCH] Improve transitions in AppView

---
 Example/ExampleApp/Sources/AppFeature/AppView.swift | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/Example/ExampleApp/Sources/AppFeature/AppView.swift b/Example/ExampleApp/Sources/AppFeature/AppView.swift
index f2af2d1a..bf7bcd3d 100644
--- a/Example/ExampleApp/Sources/AppFeature/AppView.swift
+++ b/Example/ExampleApp/Sources/AppFeature/AppView.swift
@@ -37,7 +37,10 @@ struct AppView: View {
                 LandingView(store: store)
               }
               .navigationViewStyle(.stack)
-              .transition(.move(edge: .leading))
+              .transition(.asymmetric(
+                insertion: .move(edge: .leading),
+                removal: .opacity
+              ))
             }
           )
 
@@ -49,7 +52,10 @@ struct AppView: View {
                 SessionView(store: store)
               }
               .navigationViewStyle(.stack)
-              .transition(.move(edge: .trailing))
+              .transition(.asymmetric(
+                insertion: .move(edge: .trailing),
+                removal: .opacity
+              ))
             }
           )
         }
-- 
GitLab