mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Various improvements
This commit is contained in:
@@ -42,6 +42,13 @@ final class UniversalTextureSource: TextureSource {
|
||||
)
|
||||
}
|
||||
|
||||
var mainImage: UIImage? {
|
||||
if let mainInput = self.mainInputContext?.input, case let .image(image) = mainInput {
|
||||
return image
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func setMainInput(_ input: Input) {
|
||||
guard let renderTarget = self.renderTarget else {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user