mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Merge branch 'temp-ppp'
# Conflicts: # submodules/TelegramUI/Sources/AccountContext.swift
This commit is contained in:
@@ -417,7 +417,20 @@ public final class InlineStickerItemLayer: MultiAnimationRenderTarget {
|
||||
}
|
||||
|
||||
override public var contents: Any? {
|
||||
didSet {
|
||||
get {
|
||||
return super.contents
|
||||
} set(value) {
|
||||
#if targetEnvironment(simulator)
|
||||
if let value, CFGetTypeID(value as CFTypeRef) == CVPixelBufferGetTypeID() {
|
||||
let pixelBuffer = value as! CVPixelBuffer
|
||||
super.contents = CVPixelBufferGetIOSurface(pixelBuffer)
|
||||
} else {
|
||||
super.contents = value
|
||||
}
|
||||
#else
|
||||
super.contents = value
|
||||
#endif
|
||||
|
||||
if let mirrorLayer = self.mirrorLayer {
|
||||
mirrorLayer.contents = self.contents
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user