Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created March 28, 2019 08:43
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/106b330436623dcce7cc8ca2db127fec to your computer and use it in GitHub Desktop.
Save fitomad/106b330436623dcce7cc8ca2db127fec to your computer and use it in GitHub Desktop.
/**
Detenemos la grabación
*/
private func stopScreenRecording() -> Void
{
RPScreenRecorder.shared().stopRecording() { (previewController: RPPreviewViewController?, error: Error?) -> Void in
if let error = error
{
print("Error al detener la grabación.")
print(error.localizedDescription)
}
guard let previewController = previewController else
{
return
}
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment