feat: 콘텐츠 상세 - 포인트가 사용 가능한 경우 커버이미지 우측 상단에 포인트 아이콘으로 표시
This commit is contained in:
		| @@ -42,6 +42,24 @@ struct ContentDetailPlayView: View { | ||||
|                     ) | ||||
|                     .cornerRadius(10.7, corners: [.topLeft, .topRight]) | ||||
|                  | ||||
|                 HStack(alignment: .top) { | ||||
|                     Spacer() | ||||
|                      | ||||
|                     if audioContent.isAvailableUsePoint { | ||||
|                         Image("ic_point") | ||||
|                             .resizable() | ||||
|                             .aspectRatio(1, contentMode: .fit) | ||||
|                             .frame(width: 20) | ||||
|                             .padding(.trailing, 13.3) | ||||
|                             .padding(.top, 13.3) | ||||
|                     } | ||||
|                 } | ||||
|                 .frame( | ||||
|                     width: screenSize().width - 26.7, | ||||
|                     height: screenSize().width - 26.7, | ||||
|                     alignment: .top | ||||
|                 ) | ||||
|                  | ||||
|                 if let _ = audioContent.totalContentCount, let remainingContentCount = audioContent.remainingContentCount, remainingContentCount <= 0, audioContent.creator.creatorId != UserDefaults.int(forKey: .userId), !audioContent.existOrdered { | ||||
|                     Text("Sold Out") | ||||
|                         .font(.custom(Font.bold.rawValue, size: 36.7)) | ||||
|   | ||||
| @@ -41,6 +41,7 @@ struct GetAudioContentDetailResponse: Decodable { | ||||
|     let previousContent: OtherContentResponse? | ||||
|     let nextContent: OtherContentResponse? | ||||
|     let buyerList: [ContentBuyer] | ||||
|     let isAvailableUsePoint: Bool | ||||
| } | ||||
|  | ||||
| enum OrderType: String, Codable { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yu Sung
					Yu Sung