Animate the timeline unread count indicator
This commit is contained in:
parent
66d9e882ad
commit
f4d58bd7a7
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue