KFImage를 이용하여 불러오는 이미지 다운샘플링
This commit is contained in:
@@ -15,6 +15,13 @@ struct EventPopupDialogView: View {
|
||||
var body: some View {
|
||||
VStack(spacing: 13.3) {
|
||||
KFImage(URL(string: eventPopup.popupImageUrl!))
|
||||
.cancelOnDisappear(true)
|
||||
.downsampling(
|
||||
size: CGSize(
|
||||
width: screenSize().width,
|
||||
height: screenSize().width
|
||||
)
|
||||
)
|
||||
.resizable()
|
||||
.frame(width: screenSize().width, height: screenSize().width)
|
||||
.scaledToFill()
|
||||
|
@@ -56,6 +56,13 @@ struct HomeView: View {
|
||||
if contentPlayManager.isShowingMiniPlayer {
|
||||
HStack(spacing: 0) {
|
||||
KFImage(URL(string: contentPlayManager.coverImage))
|
||||
.cancelOnDisappear(true)
|
||||
.downsampling(
|
||||
size: CGSize(
|
||||
width: 36.7,
|
||||
height: 36.7
|
||||
)
|
||||
)
|
||||
.resizable()
|
||||
.frame(width: 36.7, height: 36.7)
|
||||
.cornerRadius(5.3)
|
||||
|
Reference in New Issue
Block a user