Fix counter

This commit is contained in:
Thomas Ricouard 2023-12-28 13:14:11 +01:00
parent f3043b608c
commit 00e35be2d5

View file

@ -41,7 +41,7 @@ struct PendingStatusesObserverView: View {
observer.scrollToIndex?(observer.pendingStatusesCount)
} label: {
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
.frame(minWidth: 16, minHeight: 16)
.font(.footnote.monospacedDigit())