From af0656708bbfb1cc51907136501a8f0f7f0a3c1a Mon Sep 17 00:00:00 2001 From: Alexander Romanov Date: Mon, 24 Jul 2023 23:27:39 +0300 Subject: [PATCH] Fix avatar image scale --- Sources/OversizeUI/Controls/Avatar/Avatar.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/OversizeUI/Controls/Avatar/Avatar.swift b/Sources/OversizeUI/Controls/Avatar/Avatar.swift index a53b17f..60dd3ab 100644 --- a/Sources/OversizeUI/Controls/Avatar/Avatar.swift +++ b/Sources/OversizeUI/Controls/Avatar/Avatar.swift @@ -101,6 +101,7 @@ public struct Avatar: View { if let avatar { avatar .resizable() + .scaledToFill() .frame(width: Space.xxxLarge.rawValue, height: Space.xxxLarge.rawValue) .clipShape(Circle()) .overlay(Circle().stroke(strokeColor, lineWidth: 2))