[AltWidget] Fixes app name appearing very small on iOS 15

Also improves layout on smaller devices, such as the iPhone 12/13 mini.
This commit is contained in:
Riley Testut
2021-10-04 17:59:41 -07:00
parent b7caaeb788
commit b4f97aadf1

View File

@@ -41,8 +41,11 @@ struct WidgetView : View
.lineLimit(1)
.minimumScaleFactor(0.5)
}
.fixedSize(horizontal: false, vertical: true)
HStack(alignment: .bottom) {
Spacer(minLength: 0)
HStack(alignment: .center) {
let expirationText: Text = {
switch daysRemaining
{
@@ -79,13 +82,12 @@ struct WidgetView : View
.offset(x: 5)
}
}
.offset(y: 5) // Offset so we don't affect layout, but still leave space between app name and Countdown.
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.fixedSize(horizontal: false, vertical: true)
}
.padding()
}
}
}
else
{
VStack {