feat(chat-room): 채팅방 이미지 메시지
- 구매한 이미지 터치시 구매한 이미지만 모아볼 수 있는 뷰어 추가
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user