KFImage를 이용하여 불러오는 이미지 다운샘플링
This commit is contained in:
@@ -43,6 +43,13 @@ struct CreatorCommunityModifyView: View {
|
||||
.clipped()
|
||||
} else if let postImageUrl = viewModel.postImageUrl {
|
||||
KFImage(URL(string: postImageUrl))
|
||||
.cancelOnDisappear(true)
|
||||
.downsampling(
|
||||
size: CGSize(
|
||||
width: 107,
|
||||
height: 107
|
||||
)
|
||||
)
|
||||
.resizable()
|
||||
.scaledToFill()
|
||||
.frame(width: 107, height: 107)
|
||||
|
Reference in New Issue
Block a user