diff --git a/MiniScanner/Modules/Documents/DocumentsTableViewController.swift b/MiniScanner/Modules/Documents/DocumentsTableViewController.swift index 4ce6db7be7e5b625b5710a93f21e2df3f4053b72..23fab39643f54d2697a929e79a93fd3c6813fec9 100644 --- a/MiniScanner/Modules/Documents/DocumentsTableViewController.swift +++ b/MiniScanner/Modules/Documents/DocumentsTableViewController.swift @@ -145,16 +145,10 @@ final class DocumentsTableViewController: UIViewController, UITableViewDelegate, } @objc private func openSettings() { - if #available(iOS 16.0, *) { - let liveScan = DataScannerViewController(recognizedDataTypes: [.text()], - qualityLevel: .balanced, - isHighlightingEnabled: true) - liveScan.delegate = self - try? liveScan.startScanning() - self.present(liveScan, animated: true) - } else { - let settings = SettingViewController() - self.navigationController?.pushViewController(settings, animated: false) + + if let navigationController { + let settingsCoorindator = SettingsViewCoordinator(navigationController: navigationController) + settingsCoorindator.start() } }