From 8dfdfd991c03ca969c64316aea1f592e33983e11 Mon Sep 17 00:00:00 2001 From: shogo4405 Date: Wed, 26 Apr 2023 22:42:56 +0900 Subject: [PATCH] fix tvOS compile error. --- Sources/Extension/AVCaptureDevice+Extension.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Extension/AVCaptureDevice+Extension.swift b/Sources/Extension/AVCaptureDevice+Extension.swift index 5f812dfca..a8d11833b 100644 --- a/Sources/Extension/AVCaptureDevice+Extension.swift +++ b/Sources/Extension/AVCaptureDevice+Extension.swift @@ -1,6 +1,7 @@ import AVFoundation import Foundation +#if os(iOS) || os(macOS) extension AVCaptureDevice { func videoFormat(width: Int32, height: Int32, frameRate: Float64, isMultiCamSupported: Bool) -> AVCaptureDevice.Format? { if isMultiCamSupported { @@ -18,3 +19,4 @@ extension AVCaptureDevice { } } } +#endif