콘텐츠 상세
- 한정판이 매진된 경우 Player 가운데 Sold Out 표시
This commit is contained in:
		@@ -35,7 +35,17 @@ struct ContentDetailPlayView: View {
 | 
			
		||||
                    )
 | 
			
		||||
                    .cornerRadius(10.7, corners: [.topLeft, .topRight])
 | 
			
		||||
                
 | 
			
		||||
                if audioContent.releaseDate == nil && !isAlertPreview || (isAlertPreview && audioContent.isActivePreview) {
 | 
			
		||||
                if let _ = audioContent.totalContentCount, let remainingContentCount = audioContent.remainingContentCount, remainingContentCount <= 0, audioContent.creator.creatorId != UserDefaults.int(forKey: .userId), !isShowPreviewAlert {
 | 
			
		||||
                    Text("Sold Out")
 | 
			
		||||
                        .font(.custom(Font.bold.rawValue, size: 36.7))
 | 
			
		||||
                        .foregroundColor(.white)
 | 
			
		||||
                        .frame(
 | 
			
		||||
                            width: screenSize().width - 26.7,
 | 
			
		||||
                            height: screenSize().width - 26.7,
 | 
			
		||||
                            alignment: .center
 | 
			
		||||
                        )
 | 
			
		||||
                        .background(Color.black.opacity(0.6))
 | 
			
		||||
                } else if audioContent.releaseDate == nil && !isAlertPreview || (audioContent.isActivePreview && !audioContent.contentUrl.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty) {
 | 
			
		||||
                    Image(isPlaying() ? "btn_audio_content_pause" : isAlertPreview ? "btn_audio_content_preview_play" : "btn_audio_content_play")
 | 
			
		||||
                        .onTapGesture {
 | 
			
		||||
                            if isPlaying() {
 | 
			
		||||
@@ -56,7 +66,7 @@ struct ContentDetailPlayView: View {
 | 
			
		||||
                                isShowPreviewAlert = true
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                } else {
 | 
			
		||||
                } else if audioContent.releaseDate == nil {
 | 
			
		||||
                    Text("해당 콘텐츠는 크리에이터의 요청으로\n미리듣기를 제공하지 않습니다.")
 | 
			
		||||
                        .font(.custom(Font.medium.rawValue, size: 16.7))
 | 
			
		||||
                        .foregroundColor(Color.grayee)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user