KFImage를 이용하여 불러오는 이미지 다운샘플링
This commit is contained in:
@@ -49,6 +49,13 @@ struct LiveRoomChatItemView: View {
|
||||
}
|
||||
|
||||
KFImage(URL(string: chatMessage.profileUrl))
|
||||
.cancelOnDisappear(true)
|
||||
.downsampling(
|
||||
size: CGSize(
|
||||
width: 30,
|
||||
height: 30
|
||||
)
|
||||
)
|
||||
.resizable()
|
||||
.scaledToFill()
|
||||
.frame(width: 30, height: 30, alignment: .top)
|
||||
|
@@ -16,6 +16,13 @@ struct LiveRoomDonationChatItemView: View {
|
||||
HStack(spacing: 13.3) {
|
||||
ZStack(alignment: .bottomTrailing) {
|
||||
KFImage(URL(string: chatMessage.profileUrl))
|
||||
.cancelOnDisappear(true)
|
||||
.downsampling(
|
||||
size: CGSize(
|
||||
width: 33.3,
|
||||
height: 33.3
|
||||
)
|
||||
)
|
||||
.resizable()
|
||||
.scaledToFill()
|
||||
.frame(width: 33.3, height: 33.3, alignment: .top)
|
||||
|
@@ -16,6 +16,13 @@ struct LiveRoomRouletteDonationChatItemView: View {
|
||||
HStack(spacing: 13.3) {
|
||||
ZStack(alignment: .bottomTrailing) {
|
||||
KFImage(URL(string: chatMessage.profileUrl))
|
||||
.cancelOnDisappear(true)
|
||||
.downsampling(
|
||||
size: CGSize(
|
||||
width: 33.3,
|
||||
height: 33.3
|
||||
)
|
||||
)
|
||||
.resizable()
|
||||
.scaledToFill()
|
||||
.frame(width: 33.3, height: 33.3, alignment: .top)
|
||||
|
Reference in New Issue
Block a user