I am building a QR code scanner with Swift and everything works in that regard. The issue I have is that I am trying to make only a small area of the entire visible A
A
captureSession?.startRunning() let scanRect = CGRect(x: 0, y: 0, width: 100, height: 100) let rectOfInterest = layer.metadataOutputRectConverted(fromLayerRect: scanRect) metaDataOutput.rectOfInterest = rectOfInterest