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
CyberWake
2023-03-21 01:51:10 +0530
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-03-21 01:51:10 +0530
Commit
8e21179da3af1e72a1fc9ca136116fde63d844f7
8e21179d
1 parent
8f8b0dbd
Fix: iOS front camera switching crash issue
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 @
8e21179
...
...
@@ -138,7 +138,7 @@ public class MobileScanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelega
if
device
.
isFocusModeSupported
(
.
continuousAutoFocus
)
{
device
.
focusMode
=
.
continuousAutoFocus
}
if
#available(iOS 15.4, *)
{
if
#available(iOS 15.4, *)
,
device
.
isFocusModeSupported
(
.
autoFocus
)
{
device
.
automaticallyAdjustsFaceDrivenAutoFocusEnabled
=
false
}
device
.
unlockForConfiguration
()
...
...
Please
register
or
login
to post a comment