Add fade in fade out animation for Account unread counts. Issue #1228

This commit is contained in:
Maurice Parker 2019-11-01 17:48:27 -05:00
parent 47293cc073
commit 6b2de18557
1 changed files with 6 additions and 2 deletions

View File

@ -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
}
}
}