fix: avatar placeholder image corner set with scale issue
This commit is contained in:
parent
78eaf226a4
commit
eb86247419
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue