feat(image): 마이페이지 DownsampledKFImage 적용
- 최근 들은 콘텐츠 수평 리스트 HStack → LazyHStack으로 교체해 프리로딩/메모리 개선
This commit is contained in:
@@ -257,11 +257,11 @@ struct ProfileSectionView: View {
|
||||
VStack(spacing: 16) {
|
||||
HStack(spacing: 20) {
|
||||
// Profile Image Placeholder
|
||||
KFImage(URL(string: profileUrl))
|
||||
.cancelOnDisappear(true)
|
||||
.resizable()
|
||||
.frame(width: 64, height: 64)
|
||||
.clipShape(Circle())
|
||||
DownsampledKFImage(
|
||||
url: URL(string: profileUrl),
|
||||
size: CGSize(width: 64, height: 64)
|
||||
)
|
||||
.clipShape(Circle())
|
||||
|
||||
VStack(alignment: .leading) {
|
||||
Text("\(nickname)")
|
||||
@@ -481,7 +481,7 @@ struct RecentContentSection: View {
|
||||
.padding(.horizontal, 24)
|
||||
|
||||
ScrollView(.horizontal, showsIndicators: false) {
|
||||
HStack(spacing: 16) {
|
||||
LazyHStack(spacing: 16) {
|
||||
ForEach(0..<recentContents.count, id: \.self) { index in
|
||||
RecentItemView(content: recentContents[index])
|
||||
}
|
||||
@@ -499,12 +499,11 @@ struct RecentItemView: View {
|
||||
var body: some View {
|
||||
VStack(spacing: 8) {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
KFImage(URL(string: content.coverImageUrl))
|
||||
.cancelOnDisappear(true)
|
||||
.resizable()
|
||||
.scaledToFill()
|
||||
.frame(width: 160, height: 160, alignment: .top)
|
||||
.cornerRadius(16)
|
||||
DownsampledKFImage(
|
||||
url: URL(string: content.coverImageUrl),
|
||||
size: CGSize(width: 160, height: 160)
|
||||
)
|
||||
.cornerRadius(16)
|
||||
|
||||
Text(content.title)
|
||||
.font(.custom(Font.preRegular.rawValue, size: 18))
|
||||
|
||||
Reference in New Issue
Block a user