From 22f7c00083b7e16c7e15ace1adcdb90fb5ffe006 Mon Sep 17 00:00:00 2001 From: YuAo Date: Mon, 21 Feb 2022 12:05:17 +0800 Subject: [PATCH] Fix tvOS build issue --- Sources/VideoIO/Camera+PhotoCapture.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/VideoIO/Camera+PhotoCapture.swift b/Sources/VideoIO/Camera+PhotoCapture.swift index 3919f5c..df19cac 100644 --- a/Sources/VideoIO/Camera+PhotoCapture.swift +++ b/Sources/VideoIO/Camera+PhotoCapture.swift @@ -8,8 +8,9 @@ import Foundation import AVFoundation +#if !os(tvOS) + @available(macOS 10.15, *) -@available(tvOS, unavailable) @available(macCatalyst 14.0, *) extension Camera { @@ -53,3 +54,5 @@ extension Camera { self.photoOutput?.capturePhoto(with: settings, delegate: delegate) } } + +#endif