feat(chat-room): 채팅방에서 메시지 보내기 API 연동

- 타이핑 indicator 동작하지 않던 버그 수정
- 이미지 4:5 비율로 보이도록 수정
This commit is contained in:
Yu Sung
2025-09-04 05:10:32 +09:00
parent 2576c851ee
commit 6ce85a485a
4 changed files with 90 additions and 19 deletions

View File

@@ -93,16 +93,13 @@ struct AiMessageItemView: View {
let maxWidth = (UIScreen.main.bounds.width - 48) * 0.7
let imageHeight = maxWidth * 5 / 4 // 4:5
KFImage(URL(string: imageUrl))
.placeholder {
Rectangle()
.fill(Color.gray.opacity(0.3))
.frame(width: maxWidth, height: imageHeight)
}
.resizable()
.aspectRatio(4/5, contentMode: .fit)
.frame(width: maxWidth, height: imageHeight)
.cornerRadius(10)
ZStack {
KFImage(URL(string: imageUrl))
.resizable()
.scaledToFill() //
}
.frame(width: maxWidth, height: imageHeight)
.clipShape(RoundedRectangle(cornerRadius: 10, style: .continuous))
} else {
//
HStack(spacing: 10) {