parent
2f96ad1321
commit
e77a068a8e
|
@ -67,7 +67,7 @@ struct ContentDetailInfoView: View {
|
||||||
.foregroundColor(
|
.foregroundColor(
|
||||||
orderType == .KEEP ?
|
orderType == .KEEP ?
|
||||||
Color(hex: "b1ef2c") :
|
Color(hex: "b1ef2c") :
|
||||||
Color(hex: "9970ff")
|
Color.button
|
||||||
)
|
)
|
||||||
.padding(.horizontal, 5.3)
|
.padding(.horizontal, 5.3)
|
||||||
.padding(.vertical, 3.3)
|
.padding(.vertical, 3.3)
|
||||||
|
@ -82,7 +82,7 @@ struct ContentDetailInfoView: View {
|
||||||
|
|
||||||
Text(audioContent.title)
|
Text(audioContent.title)
|
||||||
.font(.custom(Font.bold.rawValue, size: 16.7))
|
.font(.custom(Font.bold.rawValue, size: 16.7))
|
||||||
.foregroundColor(Color(hex: "d2d2d2"))
|
.foregroundColor(Color.grayd2)
|
||||||
.lineSpacing(5)
|
.lineSpacing(5)
|
||||||
.multilineTextAlignment(.leading)
|
.multilineTextAlignment(.leading)
|
||||||
.fixedSize(horizontal: false, vertical: true)
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
|
@ -90,57 +90,59 @@ struct ContentDetailInfoView: View {
|
||||||
}
|
}
|
||||||
.padding(.top, 13.3)
|
.padding(.top, 13.3)
|
||||||
|
|
||||||
ScrollView(.horizontal, showsIndicators: false) {
|
if !audioContent.contentUrl.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty && audioContent.releaseDate == nil {
|
||||||
HStack(spacing: 8) {
|
ScrollView(.horizontal, showsIndicators: false) {
|
||||||
HStack(spacing: 4) {
|
HStack(spacing: 8) {
|
||||||
Image(
|
|
||||||
audioContent.isLike ?
|
|
||||||
"ic_audio_content_heart_pressed" :
|
|
||||||
"ic_audio_content_heart_normal"
|
|
||||||
)
|
|
||||||
|
|
||||||
Text("\(audioContent.likeCount)")
|
|
||||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
|
||||||
.foregroundColor(Color(hex: "d2d2d2"))
|
|
||||||
}
|
|
||||||
.padding(.horizontal, 13.3)
|
|
||||||
.padding(.vertical, 5.3)
|
|
||||||
.background(Color(hex: "ffffff").opacity(0.1))
|
|
||||||
.cornerRadius(26.7)
|
|
||||||
.onTapGesture { onClickLike() }
|
|
||||||
|
|
||||||
HStack(spacing: 4) {
|
|
||||||
Image("ic_audio_content_share")
|
|
||||||
|
|
||||||
Text("공유")
|
|
||||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
|
||||||
.foregroundColor(Color(hex: "d2d2d2"))
|
|
||||||
}
|
|
||||||
.padding(.horizontal, 13.3)
|
|
||||||
.padding(.vertical, 5.3)
|
|
||||||
.background(Color(hex: "ffffff").opacity(0.1))
|
|
||||||
.cornerRadius(26.7)
|
|
||||||
.onTapGesture { onClickShare() }
|
|
||||||
|
|
||||||
if audioContent.isCommentAvailable {
|
|
||||||
HStack(spacing: 4) {
|
HStack(spacing: 4) {
|
||||||
Image("ic_donation_white")
|
Image(
|
||||||
.resizable()
|
audioContent.isLike ?
|
||||||
.frame(width: 13.3, height: 13.3)
|
"ic_audio_content_heart_pressed" :
|
||||||
|
"ic_audio_content_heart_normal"
|
||||||
|
)
|
||||||
|
|
||||||
Text("후원")
|
Text("\(audioContent.likeCount)")
|
||||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||||
.foregroundColor(Color(hex: "d2d2d2"))
|
.foregroundColor(Color.grayd2)
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 13.3)
|
.padding(.horizontal, 13.3)
|
||||||
.padding(.vertical, 5.3)
|
.padding(.vertical, 5.3)
|
||||||
.background(Color(hex: "ffffff").opacity(0.1))
|
.background(Color(hex: "ffffff").opacity(0.1))
|
||||||
.cornerRadius(26.7)
|
.cornerRadius(26.7)
|
||||||
.onTapGesture { onClickDonation() }
|
.onTapGesture { onClickLike() }
|
||||||
|
|
||||||
|
HStack(spacing: 4) {
|
||||||
|
Image("ic_audio_content_share")
|
||||||
|
|
||||||
|
Text("공유")
|
||||||
|
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||||
|
.foregroundColor(Color.grayd2)
|
||||||
|
}
|
||||||
|
.padding(.horizontal, 13.3)
|
||||||
|
.padding(.vertical, 5.3)
|
||||||
|
.background(Color(hex: "ffffff").opacity(0.1))
|
||||||
|
.cornerRadius(26.7)
|
||||||
|
.onTapGesture { onClickShare() }
|
||||||
|
|
||||||
|
if audioContent.isCommentAvailable {
|
||||||
|
HStack(spacing: 4) {
|
||||||
|
Image("ic_donation_white")
|
||||||
|
.resizable()
|
||||||
|
.frame(width: 13.3, height: 13.3)
|
||||||
|
|
||||||
|
Text("후원")
|
||||||
|
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||||
|
.foregroundColor(Color.grayd2)
|
||||||
|
}
|
||||||
|
.padding(.horizontal, 13.3)
|
||||||
|
.padding(.vertical, 5.3)
|
||||||
|
.background(Color(hex: "ffffff").opacity(0.1))
|
||||||
|
.cornerRadius(26.7)
|
||||||
|
.onTapGesture { onClickDonation() }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.padding(.top, 13.3)
|
||||||
}
|
}
|
||||||
.padding(.top, 13.3)
|
|
||||||
|
|
||||||
if let totalContentCount = audioContent.totalContentCount, let remainingContentCount = audioContent.remainingContentCount {
|
if let totalContentCount = audioContent.totalContentCount, let remainingContentCount = audioContent.remainingContentCount {
|
||||||
ContentDetailInfoLimitedEditionView(
|
ContentDetailInfoLimitedEditionView(
|
||||||
|
@ -155,13 +157,13 @@ struct ContentDetailInfoView: View {
|
||||||
if audioContent.tag.count > 0 {
|
if audioContent.tag.count > 0 {
|
||||||
Text(audioContent.tag)
|
Text(audioContent.tag)
|
||||||
.font(.custom(Font.medium.rawValue, size: 12))
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
.foregroundColor(Color(hex: "9970ff"))
|
.foregroundColor(Color.button)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
}
|
}
|
||||||
|
|
||||||
Text(audioContent.detail)
|
Text(audioContent.detail)
|
||||||
.font(.custom(Font.medium.rawValue, size: 12))
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
.foregroundColor(Color(hex: "777777"))
|
.foregroundColor(Color.gray77)
|
||||||
.lineLimit(isExpandDescription ? nil : 3)
|
.lineLimit(isExpandDescription ? nil : 3)
|
||||||
.lineSpacing(5)
|
.lineSpacing(5)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
@ -173,7 +175,7 @@ struct ContentDetailInfoView: View {
|
||||||
HStack(spacing: 0) {
|
HStack(spacing: 0) {
|
||||||
Text("미리듣기 중입니다.\n콘텐츠 구매 후 전체를 감상해 보세요.")
|
Text("미리듣기 중입니다.\n콘텐츠 구매 후 전체를 감상해 보세요.")
|
||||||
.font(.custom(Font.medium.rawValue, size: 12))
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
.foregroundColor(Color(hex: "bbbbbb"))
|
.foregroundColor(Color.graybb)
|
||||||
.lineSpacing(5)
|
.lineSpacing(5)
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
|
@ -187,7 +189,7 @@ struct ContentDetailInfoView: View {
|
||||||
.overlay(
|
.overlay(
|
||||||
RoundedRectangle(cornerRadius: 5.3)
|
RoundedRectangle(cornerRadius: 5.3)
|
||||||
.stroke(lineWidth: 1)
|
.stroke(lineWidth: 1)
|
||||||
.foregroundColor(Color(hex: "9970ff"))
|
.foregroundColor(Color.button)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,7 +132,7 @@ struct ContentDetailView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if audioContent.isCommentAvailable {
|
if audioContent.isCommentAvailable && !audioContent.contentUrl.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty && audioContent.releaseDate == nil {
|
||||||
ContentDetailCommentView(
|
ContentDetailCommentView(
|
||||||
commentCount: audioContent.commentCount,
|
commentCount: audioContent.commentCount,
|
||||||
commentList: audioContent.commentList,
|
commentList: audioContent.commentList,
|
||||||
|
|
Loading…
Reference in New Issue