mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Support Xcode 16
This commit is contained in:
@@ -2477,10 +2477,11 @@ private func renderVideo(context: AccountContext, backgroundImage: UIImage, user
|
||||
let layerInstruction = compositionLayerInstruction(for: compositionTrack, assetTrack: assetTrack)
|
||||
instruction.layerInstructions = [layerInstruction]
|
||||
|
||||
guard let export = AVAssetExportSession(asset: composition, presetName: AVAssetExportPresetHighestQuality) else {
|
||||
guard let exportValue = AVAssetExportSession(asset: composition, presetName: AVAssetExportPresetHighestQuality) else {
|
||||
completion(nil)
|
||||
return
|
||||
}
|
||||
nonisolated(unsafe) let export = exportValue
|
||||
|
||||
let videoName = UUID().uuidString
|
||||
let exportURL = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent(videoName).appendingPathExtension("mp4")
|
||||
|
||||
Reference in New Issue
Block a user