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

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

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