From e02780e765e2b2ac3acd5672616eacd541a6accf Mon Sep 17 00:00:00 2001 From: JH713 Date: Mon, 29 Apr 2024 17:14:39 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=EB=B9=84=EB=8F=99=EA=B8=B0=20?= =?UTF-8?q?=EB=A1=9C=EC=A7=81=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CustomLaunchScreenViewController.swift | 5 +++-- iBox/Sources/Initializer/DefaultData.swift | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/iBox/Sources/CustomLaunchScreen/CustomLaunchScreenViewController.swift b/iBox/Sources/CustomLaunchScreen/CustomLaunchScreenViewController.swift index 1c63d5b..5129807 100644 --- a/iBox/Sources/CustomLaunchScreen/CustomLaunchScreenViewController.swift +++ b/iBox/Sources/CustomLaunchScreen/CustomLaunchScreenViewController.swift @@ -43,7 +43,9 @@ class CustomLaunchScreenViewController: UIViewController { .sink { [weak self] result in switch result { case .success, .maxRetryReached, .later: - self?.transitionToNextScreen() + DefaultData.insertDefaultDataIfNeeded() { + self?.transitionToNextScreen() + } print("App 정상 실행") case .urlError: print("URL 에러가 발생했습니다.") @@ -66,7 +68,6 @@ class CustomLaunchScreenViewController: UIViewController { case .internalInfoError: print("info error 수집") case .initial: - self?.startupFlow() print("init") } } diff --git a/iBox/Sources/Initializer/DefaultData.swift b/iBox/Sources/Initializer/DefaultData.swift index 4cc8522..b33ea54 100644 --- a/iBox/Sources/Initializer/DefaultData.swift +++ b/iBox/Sources/Initializer/DefaultData.swift @@ -21,6 +21,8 @@ class DefaultData { completion?() } } + } else { + completion?() } } From 8f91e1d19ec70338051d05969217cae471393f70 Mon Sep 17 00:00:00 2001 From: JH713 Date: Mon, 29 Apr 2024 17:17:55 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=ED=95=84=EC=9A=94=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=ED=95=A8=EC=88=98=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CustomLaunchScreen/CustomLaunchScreenViewController.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/iBox/Sources/CustomLaunchScreen/CustomLaunchScreenViewController.swift b/iBox/Sources/CustomLaunchScreen/CustomLaunchScreenViewController.swift index 5129807..4110b61 100644 --- a/iBox/Sources/CustomLaunchScreen/CustomLaunchScreenViewController.swift +++ b/iBox/Sources/CustomLaunchScreen/CustomLaunchScreenViewController.swift @@ -74,10 +74,6 @@ class CustomLaunchScreenViewController: UIViewController { .store(in: &cancellables) } - private func startupFlow() { - DefaultData.insertDefaultDataIfNeeded() - } - private func transitionToNextScreen() { guard let window = self.view.window else { return }