cancel()
cancel()
cancel() Instance Method of PHLivePhotoEditingContext Aborts any Live Photo processing in progress.
func cancel()Discussion
This method applies only after you’ve begun processing a Live Photo for display or output with the init(livePhotoEditingInput:)) or saveLivePhoto(to:options:completionHandler:)) method. After you call this method, Photos calls your completion handler and provides an error with the PHLivePhotoEditingErrorCode.aborted error code.