크리에이터 채널, 콘텐츠 상세 - 오픈예정 추가

This commit is contained in:
Yu Sung
2024-01-10 02:55:00 +09:00
parent a836215d37
commit 679783cc35
7 changed files with 57 additions and 22 deletions

View File

@@ -26,6 +26,15 @@ struct ContentListItemView: View {
VStack(alignment: .leading, spacing: 0) {
HStack(spacing: 8) {
if item.isScheduledToOpen {
Text("오픈예정")
.font(.custom(Font.medium.rawValue, size: 8))
.foregroundColor(Color(hex: "3bb9f1"))
.padding(2.6)
.background(Color(hex: "003851"))
.cornerRadius(2.6)
}
Text(item.themeStr)
.font(.custom(Font.medium.rawValue, size: 8))
.foregroundColor(Color(hex: "3bac6a"))
@@ -112,7 +121,8 @@ struct ContentListItemView_Previews: PreviewProvider {
duration: "00:04:43",
likeCount: 2,
commentCount: 0,
isAdult: false
isAdult: false,
isScheduledToOpen: true
)
)
}