KFImage를 이용하여 불러오는 이미지 다운샘플링
This commit is contained in:
@@ -26,6 +26,13 @@ struct ContentDetailPlayView: View {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
ZStack {
|
||||
KFImage(URL(string: audioContent.coverImageUrl))
|
||||
.cancelOnDisappear(true)
|
||||
.downsampling(
|
||||
size: CGSize(
|
||||
width: screenSize().width - 26.7,
|
||||
height: screenSize().width - 26.7
|
||||
)
|
||||
)
|
||||
.resizable()
|
||||
.scaledToFill()
|
||||
.frame(
|
||||
|
||||
Reference in New Issue
Block a user