scanner-overlay icon indicating copy to clipboard operation
scanner-overlay copied to clipboard

📹 AVCaptureVideoPreviewLayer with a masked overlay

Results 1 scanner-overlay issues
Sort by recently updated
recently updated
newest added

``` let path = CGMutablePath() qrCodeView.clipsToBounds = true view.clipsToBounds = true path.addRect(videoPreviewLayer!.bounds) path.addRect(qrCodeFrameView.frame) let maskLayer = CAShapeLayer() maskLayer.path = path maskLayer.fillColor = UIColor.black.withAlphaComponent(0.6).cgColor maskLayer.fillRule = .evenOdd videoPreviewLayer?.addSublayer(maskLayer) ``` I have...