diff --git a/Sources/CodeScanner/ScannerViewController.swift b/Sources/CodeScanner/ScannerViewController.swift index acb4488..366419d 100644 --- a/Sources/CodeScanner/ScannerViewController.swift +++ b/Sources/CodeScanner/ScannerViewController.swift @@ -12,7 +12,7 @@ import UIKit @available(macCatalyst 14.0, *) extension CodeScannerView { - public class ScannerViewController: UIViewController, UINavigationControllerDelegate { + public final class ScannerViewController: UIViewController, UINavigationControllerDelegate { private let photoOutput = AVCapturePhotoOutput() private var isCapturing = false private var handler: ((UIImage?) -> Void)? @@ -174,7 +174,7 @@ extension CodeScannerView { } private func setupSession() { - guard let captureSession = captureSession else { + guard let captureSession else { return }