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
ae7f9689
Commit
ae7f9689
authored
Jul 12, 2024
by
shigemi miura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
チャットのキーボード処理変更
NGAのポイント削除不具合修正
parent
e3f92dd3
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
9 deletions
+30
-9
project.pbxproj
Seilassist/Sailassist.xcodeproj/project.pbxproj
+3
-3
ChatView.swift
Seilassist/Sailassist/Chat/ChatView.swift
+6
-1
ChatInputView.swift
Seilassist/Sailassist/Chat/View/ChatInputView.swift
+8
-1
MapRepresentable.swift
Seilassist/Sailassist/Map/MapRepresentable.swift
+12
-4
NgaSettingView.swift
Seilassist/Sailassist/Map/Task/View/NgaSettingView.swift
+1
-0
No files found.
Seilassist/Sailassist.xcodeproj/project.pbxproj
View file @
ae7f9689
...
...
@@ -1299,7 +1299,7 @@
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
3
0
;
CURRENT_PROJECT_VERSION
=
3
1
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
ENABLE_PREVIEWS
=
YES
;
...
...
@@ -1345,7 +1345,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
3
0
;
CURRENT_PROJECT_VERSION
=
3
1
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
ENABLE_PREVIEWS
=
YES
;
...
...
@@ -1529,7 +1529,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME
=
AccentColor
;
CODE_SIGN_ENTITLEMENTS
=
Sailassist/Sailassist.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
3
0
;
CURRENT_PROJECT_VERSION
=
3
1
;
DEVELOPMENT_ASSET_PATHS
=
"\"Sailassist/Preview Content\""
;
DEVELOPMENT_TEAM
=
D2DC7QNNJ8
;
ENABLE_PREVIEWS
=
YES
;
...
...
Seilassist/Sailassist/Chat/ChatView.swift
View file @
ae7f9689
...
...
@@ -12,6 +12,7 @@ struct ChatView: View {
@ObservedObject
var
message
=
SharingData
.
message
@State
var
isShowMember
:
Bool
=
false
@State
var
isNotification
=
Preferences
.
ChatNotification
@State
var
isFocus
:
Bool
=
true
var
body
:
some
View
{
ZStack
{
...
...
@@ -71,6 +72,7 @@ struct ChatView: View {
VStack
{
Button
{
selectedTabModel
.
isShowChangeEmrMode
.
toggle
()
isFocus
=
false
}
label
:
{
Image
(
systemName
:
"exclamationmark.triangle.fill"
)
.
foregroundColor
(
.
white
)
...
...
@@ -85,7 +87,10 @@ struct ChatView: View {
ChatMemberView
()
}
}
ChatInputView
()
.
onTapGesture
{
isFocus
=
false
}
ChatInputView
(
isFocus
:
$
isFocus
)
}
}
.
background
(
ColorSet
.
BackgroundPrimary
.
color
)
...
...
Seilassist/Sailassist/Chat/View/ChatInputView.swift
View file @
ae7f9689
...
...
@@ -23,6 +23,7 @@ struct ChatInputView: View {
@State
var
isActionSheet
=
false
@State
var
isImagePicker
=
false
@FocusState
var
isKeyboard
:
Bool
@Binding
var
isFocus
:
Bool
var
body
:
some
View
{
VStack
(
spacing
:
0
){
...
...
@@ -77,6 +78,7 @@ struct ChatInputView: View {
TextField
(
""
,
text
:
$
inputText
,
onEditingChanged
:
{
isEdit
in
sceneDelegate
.
tabWindow
?
.
isHidden
=
isEdit
isFocus
=
true
})
.
focused
(
$
isKeyboard
)
.
font
(
FontStyle
.
SupplementText
.
font
)
...
...
@@ -126,6 +128,11 @@ struct ChatInputView: View {
print
(
"failure"
)
}
}
.
onChange
(
of
:
isFocus
)
{
focus
in
if
focus
==
false
{
isKeyboard
=
false
}
}
}
.
frame
(
maxHeight
:
55
)
.
alert
(
"Error"
,
isPresented
:
$
isChatAlert
)
{
...
...
@@ -181,6 +188,6 @@ struct ChatInputView: View {
}
#Preview {
ChatInputView
()
ChatInputView
(
isFocus
:
.
constant
(
false
)
)
.
environmentObject
(
SceneDelegate
())
}
Seilassist/Sailassist/Map/MapRepresentable.swift
View file @
ae7f9689
...
...
@@ -91,10 +91,7 @@ struct MapRepresentable: UIViewControllerRepresentable {
if
SharingData
.
nga
.
editType
==
EditNgaType
.
deletePoint
{
mapVC
.
updateEditArea
(
remove
:
true
)
if
let
no
=
SharingData
.
nga
.
selectPoint
{
SharingData
.
nga
.
editNga
?
.
points
.
remove
(
at
:
no
)
SharingData
.
nga
.
selectPoint
=
nil
}
mapVC
.
deleteSymbol
()
mapVC
.
updateEditArea
(
remove
:
false
)
}
...
...
@@ -1231,6 +1228,17 @@ class MapViewController : UIViewController {
}
}
/**
* ポイント削除(後処理)
*/
func
deleteSymbol
()
{
if
let
no
=
SharingData
.
nga
.
selectPoint
{
SharingData
.
nga
.
editNga
?
.
points
.
remove
(
at
:
no
)
SharingData
.
nga
.
selectPoint
=
nil
}
SharingData
.
nga
.
editType
=
EditNgaType
.
addPoint
}
/**
* 地図上ドラッグ
*/
...
...
Seilassist/Sailassist/Map/Task/View/NgaSettingView.swift
View file @
ae7f9689
...
...
@@ -237,6 +237,7 @@ struct NgaPointSetting: View {
HStack
{
Button
(
action
:
{
SharingData
.
nga
.
editType
=
EditNgaType
.
deletePoint
SharingData
.
map
.
isMapFree
=
true
},
label
:
{
Text
(
"Delete"
)
.
font
(
FontStyle
.
DefaultText
.
font
)
...
...
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