mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Animate color change
This commit is contained in:
@@ -119,6 +119,10 @@ final class PeerNameColorProfilePreviewItemNode: ListViewItemNode {
|
|||||||
guard let self else {
|
guard let self else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if let previousItem = self.item, (previousItem.peer?.profileColor != item.peer?.profileColor) || (previousItem.peer?.profileBackgroundEmojiId != item.peer?.profileBackgroundEmojiId) {
|
||||||
|
UIView.transition(with: self.view, duration: 0.2, options: UIView.AnimationOptions.transitionCrossDissolve, animations: {
|
||||||
|
})
|
||||||
|
}
|
||||||
self.item = item
|
self.item = item
|
||||||
|
|
||||||
self.topStripeNode.backgroundColor = item.theme.list.itemBlocksSeparatorColor
|
self.topStripeNode.backgroundColor = item.theme.list.itemBlocksSeparatorColor
|
||||||
|
|||||||
Reference in New Issue
Block a user