[AltWidget] Insets ActiveAppsWidget buttons from edge to improve tapability

This commit is contained in:
Riley Testut
2023-09-11 11:54:10 -05:00
committed by Magesh K
parent 58b6c0d6ac
commit a341a15a5e

View File

@@ -106,21 +106,20 @@ private struct ActiveAppsWidgetView: View
.foregroundStyle(.secondary)
}
HStack {
Spacer()
Countdown(startDate: app.refreshedDate,
endDate: app.expirationDate,
currentDate: entry.date,
strokeWidth: 3.0) // Slightly thinner circle stroke width
.background {
Color.black.opacity(0.1)
.mask(Capsule())
.padding(.all, -5)
}
.font(.system(size: 16, weight: .semibold, design: .rounded))
.invalidatableContent()
Spacer()
Countdown(startDate: app.refreshedDate,
endDate: app.expirationDate,
currentDate: entry.date,
strokeWidth: 3.0) // Slightly thinner circle stroke width
.background {
Color.black.opacity(0.1)
.mask(Capsule())
.padding(.all, -5)
}
.font(.system(size: 16, weight: .semibold, design: .rounded))
.invalidatableContent()
.padding(.horizontal, 8)
.activatesRefreshAllAppsIntent()
}
.frame(height: rowHeight)