ReplayKit Changes for Swift ReplayKit (Added) Added RPPreviewViewController Added RPPreviewViewController.previewControllerDelegate Added RPPreviewViewControllerDelegate Added RPPreviewViewControllerDelegate.previewController(_: RPPreviewViewController, didFinishWithActivityTypes: Set<String>) Added RPPreviewViewControllerDelegate.previewControllerDidFinish(_: RPPreviewViewController) Added RPRecordingErrorCode [enum] Added RPRecordingErrorCode.ContentResize Added RPRecordingErrorCode.Disabled Added RPRecordingErrorCode.Failed Added RPRecordingErrorCode.FailedToStart Added RPRecordingErrorCode.InsufficientStorage Added RPRecordingErrorCode.Interrupted Added RPRecordingErrorCode.Unknown Added RPRecordingErrorCode.UserDeclined Added RPScreenRecorder Added RPScreenRecorder.available Added RPScreenRecorder.delegate Added RPScreenRecorder.discardRecordingWithHandler(_: () -> Void) Added RPScreenRecorder.microphoneEnabled Added RPScreenRecorder.recording Added RPScreenRecorder.sharedRecorder() -> RPScreenRecorder [class] Added RPScreenRecorder.startRecordingWithMicrophoneEnabled(_: Bool, handler: ((NSError?) -> Void)?) Added RPScreenRecorder.stopRecordingWithHandler(_: ((RPPreviewViewController?, NSError?) -> Void)?) Added RPScreenRecorderDelegate Added RPScreenRecorderDelegate.screenRecorder(_: RPScreenRecorder, didStopRecordingWithError: NSError, previewViewController: RPPreviewViewController?) Added RPScreenRecorderDelegate.screenRecorderDidChangeAvailability(_: RPScreenRecorder) Added RPRecordingErrorDomain