Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix formatting
  • Loading branch information
martingeorgiu committed May 10, 2022
commit efb576c538540b6f960500a154ca908bbec6a02c
2 changes: 1 addition & 1 deletion packages/camera/camera/ios/Classes/CameraPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ - (void)handleMethodCallAsync:(FlutterMethodCall *)call
[dicscoveryDevices addObject:AVCaptureDeviceTypeBuiltInWideAngleCamera];
[dicscoveryDevices addObject:AVCaptureDeviceTypeBuiltInTelephotoCamera];
if (@available(iOS 13.0, *)) {
[dicscoveryDevices addObject:AVCaptureDeviceTypeBuiltInUltraWideCamera];
[dicscoveryDevices addObject:AVCaptureDeviceTypeBuiltInUltraWideCamera];
}
AVCaptureDeviceDiscoverySession *discoverySession = [AVCaptureDeviceDiscoverySession
discoverySessionWithDeviceTypes:[NSArray arrayWithArray:dicscoveryDevices]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be just discoverySessionWIthDeviceTypes: dicscoveryDevices

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes you're right! I simplified that in the tests as well

Expand Down