Closed ashish5016 closed 3 years ago
sorry I didn't see this – this is pretty old code, so I don't remember (and it may not work in latest iOS / Swift). but there seems to be a full example in the repo here: https://github.com/davidisaaclee/ViewRecorder/blob/master/ViewRecorder/ViewController.swift
the important lines seem to be:
RecordingContextImpl
, passing the UIView you want to record:resumeRecording
or pauseRecording
to record: recorder.exportRecording()
:sorry if this is more confusing than it should be – I didn't think about other people using this library, but you are free to do so.
I know that Apple has made ReplayKit more powerful since I wrote this code – I would look at that and related first-party code to see if there is a better facility for what you are trying to do. https://developer.apple.com/documentation/replaykit
feel free to reopen if this is still an issue
can't understand how to use function...