[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.
This commit is contained in:
Riley Testut
2021-10-12 11:37:36 -07:00
parent 45d104fd2c
commit 337d432fdd

View File

@@ -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()