KFImage를 이용하여 불러오는 이미지 다운샘플링
This commit is contained in:
@@ -15,6 +15,13 @@ struct ContentDetailAnotherItemView: View {
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
KFImage(URL(string: item.coverUrl))
|
||||
.cancelOnDisappear(true)
|
||||
.downsampling(
|
||||
size: CGSize(
|
||||
width: 93.3,
|
||||
height: 93.3
|
||||
)
|
||||
)
|
||||
.resizable()
|
||||
.frame(width: 93.3, height: 93.3, alignment: .center)
|
||||
.clipped()
|
||||
|
Reference in New Issue
Block a user