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

@@ -16,11 +16,11 @@ struct RecommendChannelContentItemView: View {
var body: some View {
HStack(spacing: 16) {
KFImage(URL(string: item.thumbnailImageUrl))
.cancelOnDisappear(true)
.resizable()
.frame(width: 60, height: 60)
.cornerRadius(12)
DownsampledKFImage(
url: URL(string: item.thumbnailImageUrl),
size: CGSize(width: 60, height: 60)
)
.cornerRadius(12)
VStack(alignment: .leading, spacing: 2) {
Text(item.title)

View File

@@ -17,12 +17,11 @@ struct RecommendChannelItemView: View {
var body: some View {
VStack(alignment: .leading, spacing: 12) {
HStack(spacing: 6) {
KFImage(URL(string: item.creatorProfileImageUrl))
.cancelOnDisappear(true)
.resizable()
.aspectRatio(contentMode: .fill)
.frame(width: 80, height: 80, alignment: .top)
.clipShape(Circle())
DownsampledKFImage(
url: URL(string: item.creatorProfileImageUrl),
size: CGSize(width: 80, height: 80)
)
.clipShape(Circle())
VStack(alignment: .leading, spacing: 4) {
Text(item.creatorNickname)