Fix counter
This commit is contained in:
parent
f3043b608c
commit
00e35be2d5
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue