feat(image): 메인 홈, 채팅 - 톡 페이지에 DownsampledKFImage 적용
- 수평 리스트 HStack → LazyHStack으로 교체해 프리로딩/메모리 개선
This commit is contained in:
@@ -22,12 +22,11 @@ struct HomeCreatorRankingItemView: View {
|
||||
var body: some View {
|
||||
ZStack(alignment: .topLeading) {
|
||||
VStack(spacing: 0) {
|
||||
KFImage(URL(string: item.profileImageUrl))
|
||||
.cancelOnDisappear(true)
|
||||
.resizable()
|
||||
.scaledToFill()
|
||||
.frame(width: 84, height: 84, alignment: .top)
|
||||
.clipShape(Circle())
|
||||
DownsampledKFImage(
|
||||
url: URL(string: item.profileImageUrl),
|
||||
size: CGSize(width: 84, height: 84)
|
||||
)
|
||||
.clipShape(Circle())
|
||||
|
||||
Text(item.nickname)
|
||||
.font(.custom(Font.preRegular.rawValue, size: 16))
|
||||
|
||||
Reference in New Issue
Block a user