feat: 콘텐츠 메인 - 새로운 콘텐츠, 큐레이션, 채널별 인기 콘텐츠, 시리즈 상세, 크리에이터 채널 콘텐츠 리스트

- 포인트 사용 가능 여부 표시
This commit is contained in:
Yu Sung
2025-06-10 19:43:29 +09:00
parent 842da82faf
commit 86cf466838
13 changed files with 122 additions and 46 deletions

View File

@@ -14,7 +14,7 @@ struct ContentMainItemView: View {
var body: some View {
VStack(alignment: .leading, spacing: 8) {
ZStack(alignment: .topLeading) {
ZStack(alignment: .topTrailing) {
KFImage(URL(string: item.coverImageUrl))
.cancelOnDisappear(true)
.downsampling(
@@ -27,6 +27,12 @@ struct ContentMainItemView: View {
.scaledToFill()
.frame(width: 133.3, height: 133.3, alignment: .top)
.cornerRadius(2.7)
if item.isPointAvailable {
Image("ic_point")
.padding(.top, 2.7)
.padding(.trailing, 2.7)
}
}
Text(item.title)
@@ -75,7 +81,8 @@ struct ContentMainItemView_Previews: PreviewProvider {
creatorProfileImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
creatorNickname: "유저2",
price: 10,
duration: "00:00:30"
duration: "00:00:30",
isPointAvailable: true
)
)
}