[WIP] Colored profile banners

This commit is contained in:
Ali
2023-11-17 21:48:46 +04:00
parent 165b23570b
commit e25f926342
38 changed files with 3431 additions and 2656 deletions

View File

@@ -771,12 +771,12 @@ final class EmojiSearchStatusComponent: Component {
if needsAnimation {
if self.displayLink == nil {
var counter = 0
self.displayLink = SharedDisplayLinkDriver.shared.add(needsHighestFramerate: false, { [weak self] in
self.displayLink = SharedDisplayLinkDriver.shared.add { [weak self] _ in
counter += 1
if counter % 1 == 0 {
self?.updateAnimation()
}
})
}
}
} else {
if let displayLink = self.displayLink {