From 359fe7dfbd9486009159c67f7c930c25e8f609aa Mon Sep 17 00:00:00 2001 From: levantAJ Date: Sun, 8 Nov 2020 10:18:10 +0700 Subject: [PATCH] Fix error message --- README.md | 2 +- VideoEditor.podspec | 2 +- VideoEditor/VideoEditor.swift | 4 +++- VideoEditor/VideoExporter.swift | 10 ---------- 4 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 VideoEditor/VideoExporter.swift diff --git a/README.md b/README.md index e80bd50..da3a7d8 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ ### Installation with CocoaPods ```ruby -pod 'VideoEditor', '1.0' +pod 'VideoEditor', '1.1' ``` ### Build Project diff --git a/VideoEditor.podspec b/VideoEditor.podspec index c7a6828..b1300bb 100644 --- a/VideoEditor.podspec +++ b/VideoEditor.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'VideoEditor' - s.version = '1.0' + s.version = '1.1' s.summary = 'VideoEditor facilitates manipulate Audios volume, merge multiple audios to video' s.description = <<-DESC VideoEditor written on Swift 5.0 by levantAJ diff --git a/VideoEditor/VideoEditor.swift b/VideoEditor/VideoEditor.swift index f9b4cb5..bc6b805 100644 --- a/VideoEditor/VideoEditor.swift +++ b/VideoEditor/VideoEditor.swift @@ -189,8 +189,10 @@ public extension VideoEditor { public enum VideoEditorError: Int, Error { case notFoundAudioInVideo = 10000 +} - var localizedDescription: String { +extension VideoEditorError: LocalizedError { + public var errorDescription: String? { switch self { case .notFoundAudioInVideo: return NSLocalizedString("Cannot found audio in video!", comment: "") diff --git a/VideoEditor/VideoExporter.swift b/VideoEditor/VideoExporter.swift deleted file mode 100644 index 8a9bc98..0000000 --- a/VideoEditor/VideoExporter.swift +++ /dev/null @@ -1,10 +0,0 @@ -// -// VideoExporter.swift -// VideoEditor -// -// Created by Tai Le on 10/17/20. -// - -open class VideoExporter { - static let shared = VideoExporter() -}