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 Sending feedback… We’re sorry, an error has occurred. Please try submitting your feedback later. Thank you for providing feedback! Your input helps improve our developer documentation. How helpful is this document? * Very helpful Somewhat helpful Not helpful How can we improve this document? Fix typos or links Fix incorrect information Add or update code samples Add or update illustrations Add information about... * * Required information To submit a product bug or enhancement request, please visit the Bug Reporter page. Please read Apple's Unsolicited Idea Submission Policy before you send us your feedback.