We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bde352 commit 917fe7eCopy full SHA for 917fe7e
packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/FormatUtils.swift
@@ -2,6 +2,11 @@
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
+// Import Objectice-C part of the implementation when SwiftPM is used.
6
+#if canImport(camera_avfoundation_objc)
7
+ import camera_avfoundation_objc
8
+#endif
9
+
10
enum FormatUtils {
11
// Returns frame rate supported by format closest to targetFrameRate.
12
private static func bestFrameRate(for format: FLTCaptureDeviceFormat, targetFrameRate: Double)
0 commit comments