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

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

QCアップデート
parent 0147901a
......@@ -86,7 +86,7 @@ struct MenuView: View {
NavigationStack(path: $path){
VStack(spacing: 0) {
MenuTitleView(path: $path)
HStack {
VStack(alignment: .leading, spacing: 10){
Text(SharingData.my.shipName)
......@@ -100,7 +100,7 @@ struct MenuView: View {
.padding(.vertical, 17)
Spacer()
}
Divider()
.background(ColorSet.LineColor04.color)
Button{
......@@ -108,13 +108,13 @@ struct MenuView: View {
}label: {
MenuContentView(content: .Manual)
}
Button{
path.append(.Information)
}label: {
MenuContentView(content: .Information)
}
Button{
path.append(.Setting)
}label: {
......@@ -154,29 +154,27 @@ struct MenuView: View {
}else{
VStack(spacing: 0) {
MenuTitleView(path: $path, title: goto.title)
if let url = Preferences.ECDISBasicUrl{
PDFViewer(url: url)
}else{
Spacer()
}
}
.navigationBarHidden(true)
.background(ColorSet.BackgroundPrimary.color)
.navigationBarHidden(true)
.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