Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
struct RootView: View {
@EnvironmentObject var appFlowCoordinator: AppFlowCoordinator
var body: some View {
ZStack {
if appFlowCoordinator.activeFlow == .main {
ContentView().transition(.asymmetric(insertion: .scale, removal: .opacity))
else if appFlowCoordinator.activeFlow == .login {
LoginView().transition(.asymmetric(insertion: .slide, removal: .opacity))
else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment