6

Sorry for Google translator...

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

  1. How to assign a variable scanned code.

I tried to do so:

var MyVar:String = ""


     self.barcodesHandler = { barcodes in
            for barcode in barcodes {
                MyVar = barcode.stringValue
            }
        }

But this has no effect :(

  1. How to generate code?

I tried to do so:

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

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

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

Sorry for Google translator...

ahsteele
  • 26,243
  • 28
  • 134
  • 248
Dmitry
  • 2,963
  • 2
  • 21
  • 39

0 Answers0