콘텐츠 상세

- 한정판이 매진된 경우 Player 가운데 Sold Out 표시
This commit is contained in:
Yu Sung
2024-03-28 01:36:04 +09:00
parent 4d73136740
commit 578b9b9089
2 changed files with 25 additions and 4 deletions

View File

@@ -36,6 +36,17 @@ struct ContentDetailInfoLimitedEditionView: View {
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color.grayd2)
.padding(.leading, 2.3)
} else if (remainingContentCount <= 0) {
Text("Sold Out")
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color.grayd2)
.padding(.horizontal, 5.3)
.padding(.vertical, 3.3)
.overlay(
RoundedRectangle(cornerRadius: 2.6)
.stroke(lineWidth: 1)
.foregroundColor(Color.grayd2)
)
} else {
Text("잔여수량")
.font(.custom(Font.medium.rawValue, size: 13.3))
@@ -59,7 +70,7 @@ struct ContentDetailInfoLimitedEditionView: View {
#Preview {
ContentDetailInfoLimitedEditionView(
totalContentCount: 10,
remainingContentCount: 3,
orderSequence: 5
remainingContentCount: 0,
orderSequence: nil
)
}