Skip to content

feat: enable auto scanning#15

Closed
riteshshukla04 wants to merge 2 commits into
masterfrom
ritesh/enable-autoscan
Closed

feat: enable auto scanning#15
riteshshukla04 wants to merge 2 commits into
masterfrom
ritesh/enable-autoscan

Conversation

@riteshshukla04

Copy link
Copy Markdown
Collaborator

Added methods to handle recognized items and resolve the first barcode in the DataScannerScanSession.

Added methods to handle recognized items and resolve the first barcode in the DataScannerScanSession.
Comment on lines 68 to 80
switch item {
case .barcode(let barcode):
do {
let scannedBarcode = try barcode.toScannedBarcode()
finish(with: scannedBarcode)
} catch {
finish(with: error)
}
case .text:
break
@unknown default:
break
}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicated code.

@mrousavy

mrousavy commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Superseded by #16

@mrousavy mrousavy closed this Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants