Add fade in fade out animation for Account unread counts. Issue #1228
This commit is contained in:
parent
47293cc073
commit
6b2de18557
|
@ -156,9 +156,13 @@ private extension MasterFeedTableViewSectionHeader {
|
|||
|
||||
func updateUnreadCountView() {
|
||||
if !disclosureExpanded && unreadCount > 0 {
|
||||
unreadCountView.isHidden = false
|
||||
UIView.animate(withDuration: 0.3) {
|
||||
self.unreadCountView.alpha = 1
|
||||
}
|
||||
} else {
|
||||
self.unreadCountView.isHidden = true
|
||||
UIView.animate(withDuration: 0.3) {
|
||||
self.unreadCountView.alpha = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue