Fix build

This commit is contained in:
Isaac
2024-09-19 00:37:24 +08:00
parent 3cc76b3e40
commit 21d5fe177b
5 changed files with 16 additions and 3 deletions

View File

@@ -2481,7 +2481,11 @@ private func renderVideo(context: AccountContext, backgroundImage: UIImage, user
completion(nil)
return
}
#if canImport(SwiftData) // Xcode 16
nonisolated(unsafe) let export = exportValue
#else
let export = exportValue
#endif
let videoName = UUID().uuidString
let exportURL = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent(videoName).appendingPathExtension("mp4")