콘텐츠 상세

- 미리듣기 없는 콘텐츠는 재생 버튼이 보이지 않도록 수정
This commit is contained in:
Yu Sung 2024-01-26 13:36:46 +09:00
parent aa87f0367b
commit bd818918f3
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ struct ContentDetailPlayView: View {
)
.cornerRadius(10.7, corners: [.topLeft, .topRight])
if audioContent.releaseDate == nil || audioContent.creator.creatorId == UserDefaults.int(forKey: .userId) {
if audioContent.releaseDate == nil && !isAlertPreview || (isAlertPreview && audioContent.isActivePreview) {
Image(isPlaying() ? "btn_audio_content_pause" : isAlertPreview ? "btn_audio_content_preview_play" : "btn_audio_content_play")
.onTapGesture {
if isPlaying() {