Permalink
Please sign in to comment.
Showing
with
254 additions
and 1 deletion.
- +197 −0 GifCapture.xcodeproj/project.pbxproj
- +10 −0 GifCapture.xcworkspace/contents.xcworkspacedata
- +0 −1 GifCapture/Base.lproj/Main.storyboard
- +2 −0 GifCapture/CameraMan.swift
- +19 −0 GifCapture/Converter.swift
- +14 −0 Podfile
- +12 −0 Podfile.lock
| @@ -0,0 +1,19 @@ | ||
| +// | ||
| +// Converter.swift | ||
| +// GifCapture | ||
| +// | ||
| +// Created by Khoa Pham on 02/03/2017. | ||
| +// Copyright © 2017 Fantageek. All rights reserved. | ||
| +// | ||
| + | ||
| +import Foundation | ||
| +import Regift | ||
| + | ||
| +struct Converter { | ||
| + | ||
| + func convert(videoUrl: URL) { | ||
| + Regift.createGIFFromSource(videoUrl, frameCount: 24, delayTime: 0) { (result) in | ||
| + print("Gif saved to \(result)") | ||
| + } | ||
| + } | ||
| +} |
| @@ -0,0 +1,14 @@ | ||
| +target 'GifCapture' do | ||
| + use_frameworks! | ||
| + | ||
| + pod 'Regift', '~> 1.3' | ||
| + | ||
| + target 'GifCaptureTests' do | ||
| + inherit! :search_paths | ||
| + end | ||
| + | ||
| + target 'GifCaptureUITests' do | ||
| + inherit! :search_paths | ||
| + end | ||
| + | ||
| +end |
12
Podfile.lock
| @@ -0,0 +1,12 @@ | ||
| +PODS: | ||
| + - Regift (1.3.0) | ||
| + | ||
| +DEPENDENCIES: | ||
| + - Regift (~> 1.3) | ||
| + | ||
| +SPEC CHECKSUMS: | ||
| + Regift: 43c5e057949a9e2b16de0bcf0a221a5dbd033211 | ||
| + | ||
| +PODFILE CHECKSUM: b24bde26b211ae94cf275ae7dd2b538c7f53c11f | ||
| + | ||
| +COCOAPODS: 1.2.0 |
0 comments on commit
8f4e093