Help Add an Image Overlay of QR Brackets to a Camera View in XCode Swift 13.2

Job ID: 32929865

Budget: $30 – $250 USD

Hi there. I have this in all my old projects, but I'm working on a new project now. I need to add an image overlay over a camera view when the User uses a scanner. I know it involves code similar to this:

// Initialize the video preview layer and add it as a sublayer to the viewPreview view's layer.
videoPreviewLayer = AVCaptureVideoPreviewLayer(session: captureSession!)
videoPreviewLayer?.videoGravity = AVLayerVideoGravity.resizeAspectFill
videoPreviewLayer?.frame = self.view.frame
view.layer.addSublayer(videoPreviewLayer!)

// Move the message label and top bar to the front
// view.bringSubview(toFront: messageLabel)
// view.bringSubview(toFront: topbar)

// Initialize QR Code Frame to highlight the QR code
qrCodeFrameView = UIView()

if let qrCodeFrameView = qrCodeFrameView {
qrCodeFrameView.layer.borderColor = UIColor.green.cgColor
qrCodeFrameView.layer.borderWidth = 2
view.addSubview(qrCodeFrameView)
view.bringSubview(toFront: qrCodeFrameView)
}
Related categories: Mobile App Development iPhone Objective C iPad Swift