fix(widgets): add .privacySensitive() to timer label and countdown views
This commit is contained in:
parent
e9e96ba18a
commit
d22e73fa0f
@ -98,7 +98,9 @@ struct LockScreenInlineView: View {
|
||||
HStack(spacing: 4) {
|
||||
Image(systemName: "clock.fill")
|
||||
Text(entry.label)
|
||||
.privacySensitive()
|
||||
Text(entry.targetTime, style: .timer)
|
||||
.privacySensitive()
|
||||
}
|
||||
} else {
|
||||
HStack(spacing: 4) {
|
||||
@ -122,6 +124,7 @@ struct LockScreenCircularView: View {
|
||||
.font(.system(size: 14, weight: .bold, design: .monospaced))
|
||||
.minimumScaleFactor(0.5)
|
||||
.widgetAccentable()
|
||||
.privacySensitive()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -145,8 +148,10 @@ struct LockScreenRectangularView: View {
|
||||
.font(.system(size: 14, weight: .semibold))
|
||||
.lineLimit(1)
|
||||
.widgetAccentable()
|
||||
.privacySensitive()
|
||||
Text(entry.targetTime, style: .timer)
|
||||
.font(.system(size: 12, weight: .medium, design: .monospaced))
|
||||
.privacySensitive()
|
||||
Text(formatTime(entry.targetTime))
|
||||
.font(.system(size: 10))
|
||||
.foregroundStyle(.secondary)
|
||||
|
||||
@ -105,6 +105,7 @@ struct NextTimerWidgetView: View {
|
||||
.font(.system(size: 13, weight: .semibold))
|
||||
.foregroundStyle(.primary)
|
||||
.lineLimit(1)
|
||||
.privacySensitive()
|
||||
}
|
||||
|
||||
Spacer()
|
||||
@ -119,6 +120,7 @@ struct NextTimerWidgetView: View {
|
||||
.font(.system(size: 28, weight: .bold, design: .monospaced))
|
||||
.foregroundStyle(.primary)
|
||||
.multilineTextAlignment(.leading)
|
||||
.privacySensitive()
|
||||
}
|
||||
|
||||
// Target time
|
||||
|
||||
@ -141,6 +141,7 @@ struct TimerListWidgetView: View {
|
||||
.font(.system(size: 13, weight: .medium))
|
||||
.foregroundStyle(.primary)
|
||||
.lineLimit(1)
|
||||
.privacySensitive()
|
||||
Text(formatTime(timer.targetTime))
|
||||
.font(.system(size: 11))
|
||||
.foregroundStyle(.secondary)
|
||||
@ -159,6 +160,7 @@ struct TimerListWidgetView: View {
|
||||
.foregroundStyle(urgencyColor(timer.urgency))
|
||||
.multilineTextAlignment(.trailing)
|
||||
.frame(minWidth: 50, alignment: .trailing)
|
||||
.privacySensitive()
|
||||
}
|
||||
}
|
||||
.widgetURL(URL(string: "chronomind://timer/\(timer.id)"))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user