From cb91ac5f0a0b12d8a8434c342232c90b7df5f254 Mon Sep 17 00:00:00 2001 From: levantAJ Date: Sat, 17 Oct 2020 17:12:21 +0700 Subject: [PATCH] Add base classes for video --- VideoEditor.xcodeproj/project.pbxproj | 4 ++++ VideoEditor/VideoEditor.swift | 6 ++---- VideoEditor/VideoExporter.swift | 10 ++++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 VideoEditor/VideoExporter.swift diff --git a/VideoEditor.xcodeproj/project.pbxproj b/VideoEditor.xcodeproj/project.pbxproj index afd79cb..565dd6b 100644 --- a/VideoEditor.xcodeproj/project.pbxproj +++ b/VideoEditor.xcodeproj/project.pbxproj @@ -8,6 +8,7 @@ /* Begin PBXBuildFile section */ 690FEB77253AF8BF004FCA43 /* VideoEditor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 690FEB76253AF8BF004FCA43 /* VideoEditor.swift */; }; + 690FEB7B253AFAE0004FCA43 /* VideoExporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 690FEB7A253AFAE0004FCA43 /* VideoExporter.swift */; }; 697BF772253AF3BF00033BE2 /* VideoEditor.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 697BF768253AF3BE00033BE2 /* VideoEditor.framework */; }; 697BF777253AF3BF00033BE2 /* VideoEditorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 697BF776253AF3BF00033BE2 /* VideoEditorTests.swift */; }; 697BF779253AF3BF00033BE2 /* VideoEditor.h in Headers */ = {isa = PBXBuildFile; fileRef = 697BF76B253AF3BE00033BE2 /* VideoEditor.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -25,6 +26,7 @@ /* Begin PBXFileReference section */ 690FEB76253AF8BF004FCA43 /* VideoEditor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideoEditor.swift; sourceTree = ""; }; + 690FEB7A253AFAE0004FCA43 /* VideoExporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideoExporter.swift; sourceTree = ""; }; 697BF768253AF3BE00033BE2 /* VideoEditor.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = VideoEditor.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 697BF76B253AF3BE00033BE2 /* VideoEditor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = VideoEditor.h; sourceTree = ""; }; 697BF76C253AF3BE00033BE2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; @@ -76,6 +78,7 @@ 697BF76B253AF3BE00033BE2 /* VideoEditor.h */, 697BF76C253AF3BE00033BE2 /* Info.plist */, 690FEB76253AF8BF004FCA43 /* VideoEditor.swift */, + 690FEB7A253AFAE0004FCA43 /* VideoExporter.swift */, ); path = VideoEditor; sourceTree = ""; @@ -198,6 +201,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 690FEB7B253AFAE0004FCA43 /* VideoExporter.swift in Sources */, 690FEB77253AF8BF004FCA43 /* VideoEditor.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/VideoEditor/VideoEditor.swift b/VideoEditor/VideoEditor.swift index febeca5..53d76f2 100644 --- a/VideoEditor/VideoEditor.swift +++ b/VideoEditor/VideoEditor.swift @@ -5,8 +5,6 @@ // Created by Tai Le on 10/17/20. // -import UIKit - -class VideoEditor: NSObject { - +final class VideoEditor { + static let shared = VideoEditor() } diff --git a/VideoEditor/VideoExporter.swift b/VideoEditor/VideoExporter.swift new file mode 100644 index 0000000..bf5524e --- /dev/null +++ b/VideoEditor/VideoExporter.swift @@ -0,0 +1,10 @@ +// +// VideoExporter.swift +// VideoEditor +// +// Created by Tai Le on 10/17/20. +// + +final class VideoExporter { + static let shared = VideoExporter() +}