Fix counter

This commit is contained in:
Thomas Ricouard 2023-12-28 13:14:11 +01:00
parent f3043b608c
commit 00e35be2d5
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ struct PendingStatusesObserverView: View {
observer.scrollToIndex?(observer.pendingStatusesCount) observer.scrollToIndex?(observer.pendingStatusesCount)
} label: { } label: {
Text("\(observer.pendingStatusesCount)") Text("\(observer.pendingStatusesCount)")
.contentTransition(.numericText(countsDown: true)) .contentTransition(.numericText(value: Double(observer.pendingStatusesCount)))
// Accessibility: this results in a frame with a size of at least 44x44 at regular font size // Accessibility: this results in a frame with a size of at least 44x44 at regular font size
.frame(minWidth: 16, minHeight: 16) .frame(minWidth: 16, minHeight: 16)
.font(.footnote.monospacedDigit()) .font(.footnote.monospacedDigit())