Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jørgen P. Tjernø
2023-03-04 00:02:35 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
21118d93338b109f96ed5b162bb379ad2babf6c5
21118d93
1 parent
e9645bb2
Fix bad `AVCaptureDevice.isFocusModeSupported` call
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
ios/Classes/MobileScanner.swift
ios/Classes/MobileScanner.swift
View file @
21118d9
...
...
@@ -135,7 +135,7 @@ public class MobileScanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelega
device
.
addObserver
(
self
,
forKeyPath
:
#
keyPath
(
AVCaptureDevice
.
torchMode
),
options
:
.
new
,
context
:
nil
)
do
{
try
device
.
lockForConfiguration
()
if
device
.
isFocusModeSupported
(
focusMode
:
.
continuousAutoFocus
)
{
if
device
.
isFocusModeSupported
(
.
continuousAutoFocus
)
{
device
.
focusMode
=
.
continuousAutoFocus
}
if
#available(iOS 15.4, *)
{
...
...
Please
register
or
login
to post a comment