mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Fix build
This commit is contained in:
parent
3459e36df8
commit
c677bba7c9
@ -273,7 +273,7 @@ private extension CGSize {
|
|||||||
|
|
||||||
private func convertLottieImage(data: Data) -> UIImage? {
|
private func convertLottieImage(data: Data) -> UIImage? {
|
||||||
let decompressedData = TGGUnzipData(data, 512 * 1024) ?? data
|
let decompressedData = TGGUnzipData(data, 512 * 1024) ?? data
|
||||||
guard let animation = LottieInstance(data: decompressedData, cacheKey: "") else {
|
guard let animation = LottieInstance(data: decompressedData, fitzModifier: .none, cacheKey: "") else {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
let size = animation.dimensions.fitted(CGSize(width: 200.0, height: 200.0))
|
let size = animation.dimensions.fitted(CGSize(width: 200.0, height: 200.0))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user