Commit 179391e5 authored by shigemi miura's avatar shigemi miura

一部アラートの非推奨対応

QCアップデート
parent 0147901a
...@@ -165,18 +165,16 @@ struct MenuView: View { ...@@ -165,18 +165,16 @@ struct MenuView: View {
.background(ColorSet.BackgroundPrimary.color) .background(ColorSet.BackgroundPrimary.color)
} }
} }
.alert("Sign Out", isPresented: $isSignout) {
.alert(isPresented: $isSignout) { Button("Yes") {
return Alert(title: Text("Sign Out"),
message: Text("Are you sure?"),
primaryButton: .default(Text("No")), secondaryButton: .cancel(Text("Yes"), action: {
Preferences.Id = "" Preferences.Id = ""
Preferences.Password = "" Preferences.Password = ""
Preferences.UserName = "" Preferences.UserName = ""
loginViewModel.isLogin = false loginViewModel.isLogin = false
sceneDelegate.tabWindow?.isHidden = true sceneDelegate.tabWindow?.isHidden = true
}))
} }
Button("No") {}
} message: { Text("Are you sure?") }
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment