콘텐츠 추가
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// ContentDetailAnotherItemView.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 2023/08/13.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import Kingfisher
|
||||
|
||||
struct ContentDetailAnotherItemView: View {
|
||||
|
||||
let item: OtherContentResponse
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
KFImage(URL(string: item.coverUrl))
|
||||
.resizable()
|
||||
.frame(width: 93.3, height: 93.3, alignment: .center)
|
||||
.clipped()
|
||||
.cornerRadius(2.7)
|
||||
|
||||
HStack(spacing: 0) {
|
||||
Text(item.title)
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.foregroundColor(Color(hex: "777777"))
|
||||
.multilineTextAlignment(.leading)
|
||||
.lineLimit(1)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
.frame(maxWidth: 93.3)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user