We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec3cdb4 commit a75fb9dCopy full SHA for a75fb9d
1 file changed
src/Support/Views/ButtonTemplateViews/ProgressBarItem.swift
@@ -69,6 +69,20 @@ struct ProgressBarItem: View {
69
ProgressView(value: percentage , total: 120)
70
.padding(.trailing, 14)
71
.accessibilityHidden(true)
72
+ .modify {
73
+ if percentage >= 108 {
74
+ // Show red bar if more than 90% of 120 points (108)
75
+ $0
76
+ .tint(.red)
77
+ } else if notificationBadgeBool ?? false && percentage < 108 {
78
+ // Show orange bar if optional storageLimit is reached and still below 90%
79
80
+ .tint(.orange)
81
+ } else {
82
83
+ .tint(symbolColor)
84
+ }
85
86
87
}
88
.accessibilityElement(children: .combine)
0 commit comments