Skip to content

Commit

Permalink
default preferredDeviceTypes update
Browse files Browse the repository at this point in the history
  • Loading branch information
YuAo committed Mar 31, 2020
1 parent 0c9a172 commit 8139a31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/VideoIO/Camera.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ public class Camera: NSObject {
#if os(macOS)
deviceTypes = [.builtInWideAngleCamera]
#else
if #available(iOS 11.1, *) {
if #available(iOS 13.0, *) {
deviceTypes = [.builtInDualWideCamera, .builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
} else if #available(iOS 11.1, *) {
deviceTypes = [.builtInDualCamera, .builtInTrueDepthCamera, .builtInWideAngleCamera]
} else if #available(iOS 10.2, *) {
deviceTypes = [.builtInDualCamera, .builtInWideAngleCamera]
Expand Down

0 comments on commit 8139a31

Please sign in to comment.