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
cd3e24a2
Commit
cd3e24a2
authored
Oct 10, 2025
by
shigemi miura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
チャットローディング不具合修正
parent
65b05c9e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
20 deletions
+18
-20
ChatInputView.swift
Seilassist/Sailassist/Chat/View/ChatInputView.swift
+0
-17
ChatView.swift
Seilassist/Sailassist/Chat/View/ChatView.swift
+12
-3
MyChatContentView.swift
Seilassist/Sailassist/Chat/View/MyChatContentView.swift
+3
-0
OtherChatContentView.swift
Seilassist/Sailassist/Chat/View/OtherChatContentView.swift
+3
-0
No files found.
Seilassist/Sailassist/Chat/View/ChatInputView.swift
View file @
cd3e24a2
...
...
@@ -61,23 +61,6 @@ struct ChatInputView: View {
.
padding
(
5
)
}
//MARK: - 音声入力ボタン
Button
{
viewModel
.
isRecording
.
toggle
()
if
viewModel
.
isRecording
{
speechRecognizer
.
transcribedText
=
""
speechRecognizer
.
startRecording
()
}
else
{
speechRecognizer
.
stopRecording
()
viewModel
.
inputText
=
speechRecognizer
.
transcribedText
}
}
label
:
{
Image
(
systemName
:
viewModel
.
isRecording
?
"mic.fill"
:
"mic"
)
.
resizable
()
.
frame
(
width
:
20
,
height
:
20
)
.
padding
(
5
)
}
//MARK: - テキスト入力
TextEditor
(
text
:
$
viewModel
.
inputText
)
.
focused
(
$
isKeyboardFocused
)
...
...
Seilassist/Sailassist/Chat/View/ChatView.swift
View file @
cd3e24a2
...
...
@@ -43,7 +43,7 @@ struct ChatView: View {
.
padding
(
.
bottom
,
24
)
}
}
else
{
AlertChatMessage
(
message
:
msg
)
AlertChatMessage
(
message
:
msg
,
onMediaLoaded
:
{
handleMediaLoaded
(
proxy
:
proxy
)}
)
.
padding
(
.
bottom
,
24
)
}
}
...
...
@@ -54,9 +54,8 @@ struct ChatView: View {
let
id
=
message
.
messages
.
last
?
.
messageId
else
{
return
}
totalMediaCount
=
message
.
messages
.
reduce
(
0
)
{
count
,
msg
in
count
+
(
msg
.
type
>=
2
?
1
:
0
)
count
+
(
msg
.
type
>=
0
?
1
:
0
)
}
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.2
)
{
proxy
.
scrollTo
(
id
,
anchor
:
.
bottom
)
}
...
...
@@ -194,6 +193,7 @@ struct UpLoadingView: View {
struct
AlertChatMessage
:
View
{
@Environment(\.colorScheme)
var
colorScheme
var
message
:
ChatMessage
var
onMediaLoaded
:
(()
->
Void
)?
=
nil
var
body
:
some
View
{
switch
message
.
mode
{
...
...
@@ -208,6 +208,9 @@ struct AlertChatMessage: View {
Rectangle
()
.
fill
(
ColorSet
.
ChatDate
.
color
)
.
frame
(
width
:
20
,
height
:
1
)
.
onAppear
{
onMediaLoaded
?()
}
}
case
ChatMode
.
normal
.
rawValue
:
HStack
()
{
...
...
@@ -220,9 +223,15 @@ struct AlertChatMessage: View {
Rectangle
()
.
fill
(
ColorSet
.
ChatDate
.
color
)
.
frame
(
width
:
20
,
height
:
1
)
.
onAppear
{
onMediaLoaded
?()
}
}
default
:
EmptyView
()
.
onAppear
{
onMediaLoaded
?()
}
}
}
}
...
...
Seilassist/Sailassist/Chat/View/MyChatContentView.swift
View file @
cd3e24a2
...
...
@@ -41,6 +41,9 @@ struct MyChatContentView: View {
bottomTrailingRadius
:
10
,
topTrailingRadius
:
10
))
.
onAppear
{
onMediaLoaded
?()
}
}
}
}
...
...
Seilassist/Sailassist/Chat/View/OtherChatContentView.swift
View file @
cd3e24a2
...
...
@@ -46,6 +46,9 @@ struct OtherChatContentView: View {
bottomTrailingRadius
:
0
,
topTrailingRadius
:
10
))
.
onAppear
{
onMediaLoaded
?()
}
}
}
}
...
...
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