feat(image): 메인 홈, 채팅 - 톡 페이지에 DownsampledKFImage 적용

- 수평 리스트 HStack → LazyHStack으로 교체해 프리로딩/메모리 개선
This commit is contained in:
Yu Sung
2025-10-23 18:55:53 +09:00
parent 62012bd722
commit 8221746569
12 changed files with 57 additions and 72 deletions

View File

@@ -15,15 +15,10 @@ struct OriginalTabItemView: View {
var body: some View {
VStack(alignment: .leading, spacing: 4) {
KFImage(URL(string: item.imageUrl!))
.placeholder { Color.gray.opacity(0.2) }
.retry(maxCount: 2, interval: .seconds(1))
.cancelOnDisappear(true)
.resizable()
.scaledToFill()
.frame(width: size, height: size * 432 / 306)
.clipped()
.cornerRadius(16)
DownsampledKFImage(
url: URL(string: item.imageUrl!),
size: CGSize(width: size, height: size * 432 / 306)
).cornerRadius(16)
Text(item.title)
.font(.custom(Font.preRegular.rawValue, size: 18))