My Code Scanner is a QR code scanning app Using SwiftUI Can Be modified to scan other codes. Useses CodeSanner which is a SwiftUI framework that makes it easy to scan codes such as QR codes and barcodes. It provides a view struct, CodeScannerView, that can be shown inside a sheet so that all scanning occurs in one place. You can find the framework here: https://github.com/twostraws/CodeScanner
You would need to set up to your device to view the QR code scanner with camera . Will not show Scanner in simulator.