Emoji UI improvements

This commit is contained in:
Ali
2023-01-24 14:25:26 +01:00
parent 52c60a3f0d
commit b92d21f9d7
33 changed files with 318 additions and 123 deletions

View File

@@ -98,7 +98,15 @@ private class GifVideoLayer: AVSampleBufferDisplayLayer {
}
override init(layer: Any) {
preconditionFailure()
guard let layer = layer as? GifVideoLayer else {
preconditionFailure()
}
self.context = layer.context
self.userLocation = layer.userLocation
self.file = layer.file
super.init(layer: layer)
}
required init?(coder: NSCoder) {
@@ -375,6 +383,13 @@ public final class GifPagerContentComponent: Component {
}
}
override init(layer: Any) {
self.item = nil
self.onUpdateDisplayPlaceholder = { _, _ in }
super.init(layer: layer)
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}