Skip to content

Commit

Permalink
Fix tvOS build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
YuAo committed Feb 21, 2022
1 parent b2af9fe commit 22f7c00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/VideoIO/Camera+PhotoCapture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
import Foundation
import AVFoundation

#if !os(tvOS)

@available(macOS 10.15, *)
@available(tvOS, unavailable)
@available(macCatalyst 14.0, *)
extension Camera {

Expand Down Expand Up @@ -53,3 +54,5 @@ extension Camera {
self.photoOutput?.capturePhoto(with: settings, delegate: delegate)
}
}

#endif

0 comments on commit 22f7c00

Please sign in to comment.