-
-
Save fitomad/f9ef2ba230531cccd4c676d4efabbcd6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
// Si el usuario ha activa la cámara recogemos | |
// la vista con la imagen y la añadimos a la vista. | |
if let cameraPreviewView = RPScreenRecorder.shared().cameraPreviewView, RPScreenRecorder.shared().isCameraEnabled | |
{ | |
DispatchQueue.main.async | |
{ | |
cameraPreviewView.frame = self.viewFrontCamera.bounds | |
self.viewFrontCamera.addSubview(cameraPreviewView) | |
} | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment