Download list improvements

This commit is contained in:
Ali
2022-02-26 20:44:59 +04:00
parent b1d78aedb2
commit d771cdaeac
17 changed files with 380 additions and 75 deletions

View File

@@ -77,11 +77,9 @@ public enum ChatListSearchItemHeaderType {
case .subscribers:
return strings.Channel_ChannelSubscribersHeader
case .downloading:
//TODO:localize
return "Downloading"
return strings.DownloadList_DownloadingHeader
case .recentDownloads:
//TODO:localize
return "Recently Downloaded"
return strings.DownloadList_DownloadedHeader
}
}
@@ -261,6 +259,10 @@ public final class ChatListSearchItemHeaderNode: ListViewItemHeaderNode {
self.sectionHeaderNode.updateLayout(size: size, leftInset: leftInset, rightInset: rightInset)
}
override public func animateAdded(duration: Double) {
self.layer.animateAlpha(from: 0.0, to: self.alpha, duration: 0.2)
}
override public func animateRemoved(duration: Double) {
self.alpha = 0.0
self.layer.animateAlpha(from: 1.0, to: 0.0, duration: duration, removeOnCompletion: true)