An iOS application that scans barcodes in real-time, using SwiftUI and UIKit. The app integrates AVFoundation for accurate barcode scanning and provides custom error handling for a seamless scanning experience.
- Real-Time Barcode Scanning: Utilizes AVFoundation to capture and process barcode data instantly.
- Error Handling with Custom Alerts: Provides meaningful feedback with alerts for device input and scan validation errors.
- Dynamic UI Updates: Smoothly updates the interface based on scan results, ensuring a responsive user experience.
- SwiftUI: Primary UI framework for declarative layouts.
- UIKit Integration: Used
UIViewControllerRepresentableto bridge UIKit components with SwiftUI. - AVFoundation: Core technology for real-time barcode scanning.
- Custom Alerts: Built-in alert system to notify users of device input errors and invalid scans.
- iOS 14.0+
- Xcode 12.0+
- Swift 5.3+
Clone the repository:
git clone https://github.com/shashwat46/BarcodeScanner.gitOpen the project in Xcode:
cd BarcodeScanner
open BarcodeScanner.xcodeproj
Build and run the project using Xcode's simulator or a physical device (note: scanning requires camera access).
Utilizes AVFoundation to capture and decode barcode information in real-time.
UIViewControllerRepresentable bridges UIKitโs camera scanning view controller into SwiftUI, enabling a seamless user experience with dynamic UI updates.
Provides real-time error handling with alerts, ensuring smooth barcode validation and responsive feedback for users.