mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Animate the timeline unread count indicator
This commit is contained in:
@@ -508,7 +508,11 @@ private extension MasterTimelineViewController {
|
||||
|
||||
func updateTitleUnreadCount() {
|
||||
if let unreadCountProvider = coordinator.timelineFetcher as? UnreadCountProvider {
|
||||
titleView?.unreadCountView.unreadCount = unreadCountProvider.unreadCount
|
||||
UIView.animate(withDuration: 0.3) {
|
||||
self.titleView?.unreadCountView.unreadCount = unreadCountProvider.unreadCount
|
||||
self.titleView?.setNeedsLayout()
|
||||
self.titleView?.layoutIfNeeded()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user