fix: avatar placeholder image corner set with scale issue

This commit is contained in:
CMK 2021-05-13 15:57:29 +08:00
parent 78eaf226a4
commit eb86247419
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ extension AvatarConfigurableView {
if Self.configurableAvatarImageCornerRadius < Self.configurableAvatarImageSize.width * 0.5 { if Self.configurableAvatarImageCornerRadius < Self.configurableAvatarImageSize.width * 0.5 {
return placeholderImage return placeholderImage
.af.imageAspectScaled(toFill: Self.configurableAvatarImageSize) .af.imageAspectScaled(toFill: Self.configurableAvatarImageSize)
.af.imageRounded(withCornerRadius: Self.configurableAvatarImageCornerRadius, divideRadiusByImageScale: true) .af.imageRounded(withCornerRadius: Self.configurableAvatarImageCornerRadius, divideRadiusByImageScale: false)
} else { } else {
return placeholderImage.af.imageRoundedIntoCircle() return placeholderImage.af.imageRoundedIntoCircle()
} }