From 337d432fdd5b627fde1b914eab6e3f7afc84202c Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Tue, 12 Oct 2021 11:37:36 -0700 Subject: [PATCH] [AltWidget] Improves layout on smaller devices Shrinking app icon to 40% width allows whitespace between the app name and the "Expires in" text on smaller devices, such as the iPhone 12/13 mini. --- AltWidget/WidgetView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AltWidget/WidgetView.swift b/AltWidget/WidgetView.swift index 51756c4a..55fcc679 100644 --- a/AltWidget/WidgetView.swift +++ b/AltWidget/WidgetView.swift @@ -27,7 +27,7 @@ struct WidgetView : View Group { VStack(alignment: .leading) { VStack(alignment: .leading, spacing: 5) { - let imageHeight = geometry.size.height * 0.45 + let imageHeight = geometry.size.height * 0.4 Image(uiImage: app.icon ?? UIImage()) .resizable()