feat(home): 홈 추천 콘텐츠 섹션 추가
This commit is contained in:
@@ -14,12 +14,14 @@ struct ContentItemView: View {
|
||||
|
||||
let item: AudioContentMainItem
|
||||
|
||||
var itemSize: CGFloat = 160
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
ZStack(alignment: .top) {
|
||||
DownsampledKFImage(
|
||||
url: URL(string: item.coverImageUrl),
|
||||
size: CGSize(width: 160, height: 160)
|
||||
size: CGSize(width: itemSize, height: itemSize)
|
||||
)
|
||||
.cornerRadius(16)
|
||||
|
||||
@@ -51,7 +53,7 @@ struct ContentItemView: View {
|
||||
.padding(.horizontal, 6)
|
||||
.padding(.top, 4)
|
||||
}
|
||||
.frame(width: 160)
|
||||
.frame(width: itemSize)
|
||||
.onTapGesture {
|
||||
if !token.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
|
||||
AppState.shared.setAppStep(step: .contentDetail(contentId: item.contentId))
|
||||
|
||||
Reference in New Issue
Block a user