[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 0cf62636a1
commit c5f4bf71e2

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