Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created March 28, 2019 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/8503f7da895c5a1bc36f565d2185f957 to your computer and use it in GitHub Desktop.
Save fitomad/8503f7da895c5a1bc36f565d2185f957 to your computer and use it in GitHub Desktop.
/**
Iniciamos la grabación
*/
private func startScreenRecording() -> Void
{
RPScreenRecorder.shared().startRecording() { (error: Error?) -> Void in
if let error = error
{
print("Error al empezar a grabar la pantalla.")
print(error.localizedDescription)
self.isScreenRecording = false
}
else
{
print("Recording...")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment