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

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

QCアップデート
parent 0147901a
......@@ -165,18 +165,16 @@ struct MenuView: View {
.background(ColorSet.BackgroundPrimary.color)
}
}
.alert(isPresented: $isSignout) {
return Alert(title: Text("Sign Out"),
message: Text("Are you sure?"),
primaryButton: .default(Text("No")), secondaryButton: .cancel(Text("Yes"), action: {
.alert("Sign Out", isPresented: $isSignout) {
Button("Yes") {
Preferences.Id = ""
Preferences.Password = ""
Preferences.UserName = ""
loginViewModel.isLogin = false
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