KFImage를 이용하여 불러오는 이미지 다운샘플링
This commit is contained in:
@@ -18,6 +18,8 @@ struct SeriesListItemView: View {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
ZStack {
|
||||
KFImage(URL(string: item.coverImage))
|
||||
.cancelOnDisappear(true)
|
||||
.downsampling(size: CGSize(width: itemWidth, height: itemWidth * 432 / 306))
|
||||
.resizable()
|
||||
.scaledToFill()
|
||||
.frame(width: itemWidth, height: itemWidth * 432 / 306)
|
||||
|
Reference in New Issue
Block a user