diff --git a/SodaLive/Sources/Content/Detail/ContentDetailPlayView.swift b/SodaLive/Sources/Content/Detail/ContentDetailPlayView.swift index e271372..db2e28a 100644 --- a/SodaLive/Sources/Content/Detail/ContentDetailPlayView.swift +++ b/SodaLive/Sources/Content/Detail/ContentDetailPlayView.swift @@ -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)) diff --git a/SodaLive/Sources/Content/Detail/GetAudioContentDetailResponse.swift b/SodaLive/Sources/Content/Detail/GetAudioContentDetailResponse.swift index 3853caf..0884718 100644 --- a/SodaLive/Sources/Content/Detail/GetAudioContentDetailResponse.swift +++ b/SodaLive/Sources/Content/Detail/GetAudioContentDetailResponse.swift @@ -41,6 +41,7 @@ struct GetAudioContentDetailResponse: Decodable { let previousContent: OtherContentResponse? let nextContent: OtherContentResponse? let buyerList: [ContentBuyer] + let isAvailableUsePoint: Bool } enum OrderType: String, Codable {