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()