SlideShowMaker
iOS: Multiple images to Video with animations
Install / Use
/learn @cf-L/SlideShowMakerREADME
SlideShowMaker
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, linchangfeng@live.com
License
SlideShowMaker is available under the MIT license. See the LICENSE file for more info.
Related Skills
docs-writer
99.5k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
341.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
project-overview
FlightPHP Skeleton Project Instructions This document provides guidelines and best practices for structuring and developing a project using the FlightPHP framework. Instructions for AI Coding A
ddd
Guía de Principios DDD para el Proyecto > 📚 Documento Complementario : Este documento define los principios y reglas de DDD. Para ver templates de código, ejemplos detallados y guías paso
