From 30364e32cae91d97e1715a99c72fea00f901c4ac Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Thu, 24 Apr 2025 11:17:09 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=BD=98=ED=85=90=EC=B8=A0=20=EC=83=81?= =?UTF-8?q?=EC=84=B8=20-=20=ED=8F=AC=EC=9D=B8=ED=8A=B8=EA=B0=80=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=20=EA=B0=80=EB=8A=A5=ED=95=9C=20=EA=B2=BD?= =?UTF-8?q?=EC=9A=B0=20=EC=BB=A4=EB=B2=84=EC=9D=B4=EB=AF=B8=EC=A7=80=20?= =?UTF-8?q?=EC=9A=B0=EC=B8=A1=20=EC=83=81=EB=8B=A8=EC=97=90=20=ED=8F=AC?= =?UTF-8?q?=EC=9D=B8=ED=8A=B8=20=EC=95=84=EC=9D=B4=EC=BD=98=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Content/Detail/ContentDetailPlayView.swift | 18 ++++++++++++++++++ .../Detail/GetAudioContentDetailResponse.swift | 1 + 2 files changed, 19 insertions(+) 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 {