feat(chat-room): 채팅방에서 메시지 보내기 API 연동
- 타이핑 indicator 동작하지 않던 버그 수정 - 이미지 4:5 비율로 보이도록 수정
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user