Skip to content

Commit c000a75

Browse files
committed
fix doc code snippets
1 parent 4bac9e2 commit c000a75

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Documentation Code Snippets/ScanbotSDK Examples/Barcode Scanner/Data Parsing/Objc/BarcodeScannerDataParsingObjcViewController.m

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ - (void)viewDidLoad {
6262
// Define and set barcode types that should be accepted by the scanner.
6363
NSArray <SBSDKBarcodeType *> *commonTypes = [SBSDKBarcodeType commonTypes];
6464
self.scannerViewController.acceptedBarcodeTypes = commonTypes;
65+
66+
// Set Swiss QR as an accepted document type.
67+
self.scannerViewController.acceptedDocumentTypes = @[SBSDKBarcodeDocumentRootType.swissQR];
6568
}
6669

6770
- (void)viewDidAppear:(BOOL)animated {

Documentation Code Snippets/ScanbotSDK Examples/Barcode Scanner/Data Parsing/Swift/BarcodeScannerDataParsingSwiftViewController.swift

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ class BarcodeScannerDataParsingSwiftViewController: UIViewController {
5858
// Define and set barcode types that should be accepted by the scanner.
5959
let commonTypes = SBSDKBarcodeType.commonTypes
6060
self.scannerViewController.acceptedBarcodeTypes = commonTypes
61+
62+
// Set Swiss QR as an accepted document type.
63+
self.scannerViewController.acceptedDocumentTypes = [.swissQR]
6164
}
6265
}
6366

0 commit comments

Comments
 (0)