From aee6af842fb4abcd131124b4aec8d7eaac0d16f7 Mon Sep 17 00:00:00 2001 From: Juny0110 Date: Sat, 19 Nov 2022 12:15:07 +0900 Subject: [PATCH] :iphone: #7 Modify product contentMode --- .../ThrowAway/SwiftUI/StaticsView/View/StatisticsView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ThrowAway/ThrowAway/SwiftUI/StaticsView/View/StatisticsView.swift b/ThrowAway/ThrowAway/SwiftUI/StaticsView/View/StatisticsView.swift index 336495e..107e04a 100644 --- a/ThrowAway/ThrowAway/SwiftUI/StaticsView/View/StatisticsView.swift +++ b/ThrowAway/ThrowAway/SwiftUI/StaticsView/View/StatisticsView.swift @@ -54,8 +54,9 @@ struct StatisticsView: View { HStack { ForEach(productArray, id: \.self) {product in Image(product) - .frame(width: setWidth / 6, height: setWidth / 6, alignment: .center) + .resizable() .frame(width: screenWidth / 6, height: screenWidth / 6, alignment: .center) + .aspectRatio(contentMode: .fit) .clipShape(Circle()) } }