강제업데이트 다이얼로그 추가
This commit is contained in:
parent
694ef2b0a4
commit
77a145d61c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue