Skip to content

Commit dee1a26

Browse files
committed
feat(AVFoundation): Update _AVCaptureDeviceProtocol availability
1 parent 9688dc4 commit dee1a26

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
#if canImport(AVFoundation)
1+
#if canImport(AVFoundation) && !os(watchOS)
22
import AVFoundation
33

4+
@available(macOS 10.7, iOS 4.0, macCatalyst 14.0, tvOS 17.0, visionOS 1.0, *)
45
public protocol _AVCaptureDeviceProtocol: AVCaptureDevice {}
6+
7+
@available(macOS 10.7, iOS 4.0, macCatalyst 14.0, tvOS 17.0, visionOS 1.0, *)
58
extension AVCaptureDevice: _AVCaptureDeviceProtocol {}
69
#endif

0 commit comments

Comments
 (0)