Latest 0.1.0
Homepage https://github.com/cf-L/SlideShowMaker
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

SlideShowMaker is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "SlideShowMaker"

Usage

let images = [#imageLiteral(resourceName: "img0"), #imageLiteral(resourceName: "img1"), #imageLiteral(resourceName: "img2"), #imageLiteral(resourceName: "img3")]

var audio: AVURLAsset?
var timeRange: CMTimeRange?
if let audioURL = Bundle.main.url(forResource: "Sound", withExtension: "mp3") {
    audio = AVURLAsset(url: audioURL)
    let audioDuration = CMTime(seconds: 30, preferredTimescale: audio!.duration.timescale)
    timeRange = CMTimeRange(start: kCMTimeZero, duration: audioDuration)
}

// OR: VideoMaker(images: images, movement: ImageMovement.fade)
let maker = VideoMaker(images: images, transition: ImageTransition.wipeMixed)

maker.contentMode = .scaleAspectFit

maker.exportVideo(audio: audio, audioTimeRange: timeRange, completed: { success, videoURL in
    if let url = videoURL {
        print(url)  // /Library/Mov/merge.mov
    }
}).progress = { progress in
    print(progress)
}

Author

cf-L, [email protected]

License

SlideShowMaker is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SlideShowMaker",
    "version": "0.1.0",
    "summary": "Multiple images to Video with animations",
    "description": "Multiple images to Video with animations.",
    "homepage": "https://github.com/cf-L/SlideShowMaker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "cf-L": "[email protected]"
    },
    "source": {
        "git": "https://github.com/cf-L/SlideShowMaker.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "SlideShowMaker/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This