RSBarcodes_Swift how to use?

Sorry for the Google translator ...

Hello! I want to understand the use of the Swift RSBarcodes library .

  • How to assign variable scanned code.

I tried to do this:

var MyVar:String = "" self.barcodesHandler = { barcodes in for barcode in barcodes { MyVar = barcode.stringValue } } 

But this does not affect: (

  1. How to generate code?

I tried to do this:

 RSUnifiedCodeGenerator.shared.generateCode("2166529V", machineReadableCodeObjectType: AVMetadataObjectTypeCode39Code) 

But this has no effect: (What should I do to see the generated image. I do not understand.

Perhaps someone has a full description of the library or a working example. I would be very grateful.

Sorry for the Google translator ...

+5
source share

Source: https://habr.com/ru/post/1211163/


All Articles