From 5ed4042e64ef4e8429e2e7f36f65680636364e73 Mon Sep 17 00:00:00 2001 From: Mustafa Merza <mustafa.merza95@gmail.com> Date: Mon, 12 Aug 2024 15:10:04 +0300 Subject: [PATCH] - Fixed stoping camera session when screen disappears. --- .../Frameworks/CustomWeScan/Scan/ScannerViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/MiniScanner/Supporting Files/Frameworks/CustomWeScan/Scan/ScannerViewController.swift b/MiniScanner/Supporting Files/Frameworks/CustomWeScan/Scan/ScannerViewController.swift index c5939a6..4ce57b7 100644 --- a/MiniScanner/Supporting Files/Frameworks/CustomWeScan/Scan/ScannerViewController.swift +++ b/MiniScanner/Supporting Files/Frameworks/CustomWeScan/Scan/ScannerViewController.swift @@ -172,6 +172,7 @@ public final class ScannerViewController: UIViewController, ScanSessionSharable, public override func viewDidDisappear(_ animated: Bool) { deviceOrientationHelper.stopDeviceOrientationNotifier() + captureSessionManager?.stop() super.viewDidDisappear(true) } -- GitLab