Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sailassist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
54
Merge Requests
54
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gr-ssv
Sailassist
Commits
179391e5
Commit
179391e5
authored
Dec 18, 2023
by
shigemi miura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一部アラートの非推奨対応
QCアップデート
parent
0147901a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
MenuView.swift
Seilassist/Sailassist/Menu/MenuView.swift
+12
-14
No files found.
Seilassist/Sailassist/Menu/MenuView.swift
View file @
179391e5
...
...
@@ -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?"
)
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment