diff --git a/submodules/Camera/Sources/VideoRecorder.swift b/submodules/Camera/Sources/VideoRecorder.swift index acfc8ef8c9..a2d3a7cb83 100644 --- a/submodules/Camera/Sources/VideoRecorder.swift +++ b/submodules/Camera/Sources/VideoRecorder.swift @@ -123,7 +123,7 @@ private final class VideoRecorderImpl { private var previousAppendTime: Double? public func appendVideoSampleBuffer(_ sampleBuffer: CMSampleBuffer) { - #if canImport(SwiftData) // Xcode 16 + #if compiler(>=6.0) // Xcode 16 nonisolated(unsafe) let sampleBuffer = sampleBuffer #endif @@ -250,7 +250,7 @@ private final class VideoRecorderImpl { } public func appendAudioSampleBuffer(_ sampleBuffer: CMSampleBuffer) { - #if canImport(SwiftData) // Xcode 16 + #if compiler(>=6.0) // Xcode 16 nonisolated(unsafe) let sampleBuffer = sampleBuffer #endif diff --git a/submodules/StatisticsUI/Sources/ChannelStatsController.swift b/submodules/StatisticsUI/Sources/ChannelStatsController.swift index 1d4d97a683..39a97e73d5 100644 --- a/submodules/StatisticsUI/Sources/ChannelStatsController.swift +++ b/submodules/StatisticsUI/Sources/ChannelStatsController.swift @@ -2500,7 +2500,7 @@ public func channelStatsController(context: AccountContext, updatedPresentationD })) } var tooltipScreen: UndoOverlayController? - #if canImport(SwiftData) // Xcode 16 + #if compiler(>=6.0) // Xcode 16 nonisolated(unsafe) var timer: Foundation.Timer? #else var timer: Foundation.Timer? diff --git a/submodules/TelegramUI/Components/Chat/ChatQrCodeScreen/Sources/ChatQrCodeScreen.swift b/submodules/TelegramUI/Components/Chat/ChatQrCodeScreen/Sources/ChatQrCodeScreen.swift index a1d219eb7e..86eb90094c 100644 --- a/submodules/TelegramUI/Components/Chat/ChatQrCodeScreen/Sources/ChatQrCodeScreen.swift +++ b/submodules/TelegramUI/Components/Chat/ChatQrCodeScreen/Sources/ChatQrCodeScreen.swift @@ -2481,7 +2481,7 @@ private func renderVideo(context: AccountContext, backgroundImage: UIImage, user completion(nil) return } - #if canImport(SwiftData) // Xcode 16 + #if compiler(>=6.0) // Xcode 16 nonisolated(unsafe) let export = exportValue #else let export = exportValue