mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 11:43:24 +01:00
[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:
@@ -41,8 +41,11 @@ struct WidgetView : View
|
|||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.minimumScaleFactor(0.5)
|
.minimumScaleFactor(0.5)
|
||||||
}
|
}
|
||||||
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
|
|
||||||
HStack(alignment: .bottom) {
|
Spacer(minLength: 0)
|
||||||
|
|
||||||
|
HStack(alignment: .center) {
|
||||||
let expirationText: Text = {
|
let expirationText: Text = {
|
||||||
switch daysRemaining
|
switch daysRemaining
|
||||||
{
|
{
|
||||||
@@ -79,11 +82,10 @@ struct WidgetView : View
|
|||||||
.offset(x: 5)
|
.offset(x: 5)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.offset(y: 5) // Offset so we don't affect layout, but still leave space between app name and Countdown.
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
}
|
}
|
||||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
.padding()
|
||||||
}
|
}
|
||||||
.padding()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user