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() {
|
func updateUnreadCountView() {
|
||||||
if !disclosureExpanded && unreadCount > 0 {
|
if !disclosureExpanded && unreadCount > 0 {
|
||||||
unreadCountView.isHidden = false
|
UIView.animate(withDuration: 0.3) {
|
||||||
|
self.unreadCountView.alpha = 1
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
self.unreadCountView.isHidden = true
|
UIView.animate(withDuration: 0.3) {
|
||||||
|
self.unreadCountView.alpha = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user