From 808702d1cec96dc64317e1100b65a30a724a530f Mon Sep 17 00:00:00 2001 From: Mustafa Ozhan Date: Fri, 20 Sep 2024 15:30:55 +0200 Subject: [PATCH] [Oztechan/CCC#3959] Remove EmptyView Logic (#3960) --- ios/CCC/Application.swift | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ios/CCC/Application.swift b/ios/CCC/Application.swift index 8db0ed529..31f41e5db 100644 --- a/ios/CCC/Application.swift +++ b/ios/CCC/Application.swift @@ -61,14 +61,10 @@ struct Application: App { transitionType: .default, easing: Animation.easeInOut ) { - if scenePhase == .inactive { - EmptyView() + if observable.state.shouldOnboardUser { + IntroSlideRootView() } else { - if observable.state.shouldOnboardUser { - IntroSlideRootView() - } else { - CalculatorRootView() - } + CalculatorRootView() } }.onAppear { observable.startObserving()