KFImage를 이용하여 불러오는 이미지 다운샘플링
This commit is contained in:
@@ -292,6 +292,13 @@ struct ProfileUpdateView: View {
|
||||
ZStack {
|
||||
if profileResponse.profileUrl.trimmingCharacters(in: .whitespaces).count > 0 {
|
||||
KFImage(URL(string: profileResponse.profileUrl))
|
||||
.cancelOnDisappear(true)
|
||||
.downsampling(
|
||||
size: CGSize(
|
||||
width: 80,
|
||||
height: 80
|
||||
)
|
||||
)
|
||||
.resizable()
|
||||
.scaledToFill()
|
||||
.frame(width: 80, height: 80, alignment: .top)
|
||||
|
@@ -51,6 +51,13 @@ struct MemberTagView: View {
|
||||
VStack(spacing: 16.7) {
|
||||
ZStack {
|
||||
KFImage(URL(string: tag.image))
|
||||
.cancelOnDisappear(true)
|
||||
.downsampling(
|
||||
size: CGSize(
|
||||
width: 60,
|
||||
height: 60
|
||||
)
|
||||
)
|
||||
.resizable()
|
||||
.scaledToFill()
|
||||
.frame(width: 60, height: 60, alignment: .top)
|
||||
|
Reference in New Issue
Block a user