Skip to content

Commit

Permalink
fix tvOS compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Apr 26, 2023
1 parent 954a3c8 commit 8dfdfd9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Extension/AVCaptureDevice+Extension.swift
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -18,3 +19,4 @@ extension AVCaptureDevice {
}
}
}
#endif

0 comments on commit 8dfdfd9

Please sign in to comment.