mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-03 20:37:34 +01:00
Animate the timeline unread count indicator
This commit is contained in:
parent
66d9e882ad
commit
f4d58bd7a7
@ -508,7 +508,11 @@ private extension MasterTimelineViewController {
|
|||||||
|
|
||||||
func updateTitleUnreadCount() {
|
func updateTitleUnreadCount() {
|
||||||
if let unreadCountProvider = coordinator.timelineFetcher as? UnreadCountProvider {
|
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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user