Skip to content

shashwat46/BarcodeScanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Barcode Scanner App ๐Ÿ“ฑ

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.

Features โœจ

  • 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.

Technologies Used ๐Ÿ› ๏ธ

  • SwiftUI: Primary UI framework for declarative layouts.
  • UIKit Integration: Used UIViewControllerRepresentable to 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.

Requirements ๐Ÿ“‹

  • iOS 14.0+
  • Xcode 12.0+
  • Swift 5.3+

Installation ๐Ÿ’ป

Clone the repository:

git clone https://github.com/shashwat46/BarcodeScanner.git

Open 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).

Key Components ๐Ÿ”‘

Barcode Scanning

Utilizes AVFoundation to capture and decode barcode information in real-time.

UIKit Integration

UIViewControllerRepresentable bridges UIKitโ€™s camera scanning view controller into SwiftUI, enabling a seamless user experience with dynamic UI updates.

Custom Error Handling

Provides real-time error handling with alerts, ensuring smooth barcode validation and responsive feedback for users.

About

A BarcodeScanner application that uses both SwiftUI and UIKit components to scan and display barcodes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages