To run the example project, clone the repo, and open Example/AssetReverserExample.xcodeproj
with a version of Xcode that supports Swift 5.0
On iOS 13 +
let asset = AVURLAsset(url: inputURL) // Your video file URL
let session = AssetReverseSession(asset: asset, outputFileURL: outputURL)
let reversedAsset = try await session.reverse()
Using Swift Package Manager
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "TestProject",
dependencies: [
.package(url: "https://github.com/quentinfasquel/AssetReverser", from: "0.0.2")
],
targets: [
.target(name: "TestProject", dependencies: ["AssetReverser"])
]
)
Using CocoaPods
# Podfile
use_frameworks!
target 'YOUR_TARGET_NAME' do
pod 'AssetReverser', '0.0.2'
end
Using Carthage
Add this to Cartfile
github "quentinfasquel/AssetReverser" "0.0.2"
$ carthage update
Quentin Fasquel
AssetReverser is available under the MIT license. See the LICENSE file for more info.