Skip to content

Commit 0f02348

Browse files
authored
Patch 3.0.3
fix: - Mark completion handlers as https://github.com/sendable in setExposureModeCustom and setExposureTargetBias methods - Resolves Xcode 26 compilation errors - Fix maintains backward compatibility and compiles successfully on both Xcode 16.4.0 and Xcode 26.0.0-beta --------- Co-authored-by: veraposeidon<veraposeidon@gmail.com>
1 parent 10cde2e commit 0f02348

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/Internal/Manager/Helpers/Capture Device/CaptureDevice.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ protocol CaptureDevice: NSObject {
4747
func lockForConfiguration() throws
4848
func unlockForConfiguration()
4949
func isExposureModeSupported(_ exposureMode: AVCaptureDevice.ExposureMode) -> Bool
50-
func setExposureModeCustom(duration: CMTime, iso: Float, completionHandler: ((CMTime) -> Void)?)
51-
func setExposureTargetBias(_ bias: Float, completionHandler handler: ((CMTime) -> ())?)
50+
func setExposureModeCustom(duration: CMTime, iso: Float, completionHandler: (@Sendable (CMTime) -> Void)?)
51+
func setExposureTargetBias(_ bias: Float, completionHandler handler: (@Sendable (CMTime) -> ())?)
5252
}
5353

5454

0 commit comments

Comments
 (0)