feat(chat-room): 채팅방 이미지 메시지

- 구매한 이미지 터치시 구매한 이미지만 모아볼 수 있는 뷰어 추가
This commit is contained in:
Yu Sung
2025-09-04 07:27:24 +09:00
parent f98f625200
commit b06ffcc97c
3 changed files with 37 additions and 10 deletions

View File

@@ -103,11 +103,11 @@ struct AiMessageItemView: View {
.resizable()
.scaledToFill() //
Color.black.opacity(0.2)
.frame(width: maxWidth, height: imageHeight)
.cornerRadius(30)
if let price = message.price, price > 0, !message.hasAccess {
Color.black.opacity(0.2)
.frame(width: maxWidth, height: imageHeight)
.cornerRadius(10)
VStack(spacing: 18) {
HStack(spacing: 4) {
Image("ic_can")
@@ -123,7 +123,7 @@ struct AiMessageItemView: View {
.background(Color(hex: "B5E7FA"))
.cornerRadius(30)
.overlay {
RoundedRectangle(cornerRadius: 30)
RoundedRectangle(cornerRadius: 10)
.stroke(lineWidth: 1)
.foregroundColor(.button)
}
@@ -133,13 +133,13 @@ struct AiMessageItemView: View {
.foregroundColor(.white)
}
.frame(width: maxWidth, height: imageHeight)
.onTapGesture {
purchaseMessage()
}
}
}
.frame(width: maxWidth, height: imageHeight)
.clipShape(RoundedRectangle(cornerRadius: 10, style: .continuous))
.onTapGesture {
purchaseMessage()
}
} else {
//
HStack(spacing: 10) {