From 77a145d61cba02d328ceef7a78b3a1599f1d3e16 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Thu, 7 Dec 2023 13:16:03 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B0=95=EC=A0=9C=EC=97=85=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=8A=B8=20=EB=8B=A4=EC=9D=B4=EC=96=BC=EB=A1=9C=EA=B7=B8=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Splash/SplashView.swift | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/SodaLive/Sources/Splash/SplashView.swift b/SodaLive/Sources/Splash/SplashView.swift index 89743f0..5763eed 100644 --- a/SodaLive/Sources/Splash/SplashView.swift +++ b/SodaLive/Sources/Splash/SplashView.swift @@ -25,6 +25,34 @@ struct SplashView: View { Image("splash_logo_christmas") .padding(.top, 188) + if isShowUpdatePopup { + SodaDialog( + title: "업데이트", + desc: "최신 업데이트가 있습니다.\n업데이트 하시겠습니까?", + confirmButtonTitle: "업데이트", + confirmButtonAction: { + UIApplication.shared.open(URL(string: "https://apps.apple.com/us/app/id6461721697?mt=8")!, options: [:]) + }, + cancelButtonTitle: "다음에", + cancelButtonAction: { + DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { + AppState.shared.setAppStep(step: .main) + } + } + ) + } + + if isShowForcedUpdatePopup { + SodaDialog( + title: "업데이트", + desc: "필수 업데이트가 있습니다.\n업데이트 후 사용가능합니다.", + confirmButtonTitle: "업데이트", + confirmButtonAction: { + UIApplication.shared.open(URL(string: "https://apps.apple.com/us/app/id6461721697?mt=8")!, options: [:]) + } + ) + } + } .onAppear { fetchLastestVersion()