layer.removeFromSuperlayer() does not remove layer.
I’ve implemented a QRCode scanner. Starting and stopping the session works, and it’s successful in reading the barcodes. But I can’t remove the layer,
I wont to remove the layer from the callback
captureOutputDidOutputMetadataObjectsFromConnection, as soon as it detects and reads the barcode. This is where I’m calling
I’ve also tried removing from a time-out, but nothing.
No error is being thrown.