Swift wrapper for libass.
You can add swift-libass to an Xcode project by adding it to your project as a package.
If you want to use swift-libass in a SwiftPM project, it's as
simple as adding it to your Package.swift:
dependencies: [
.package(url: "https://github.com/mihai8804858/swift-libass", from: "1.0.0")
]And then adding the product to any target that needs access to the library:
.product(name: "SwiftLibass", package: "swift-libass"),Just import SwiftLibass in your project to access the underlying libass C API:
import SwiftLibass
let library = ass_library_init()
let renderer = ass_renderer_init(library)All C dependencies come prebuilt as XCFrameworks in Libraries folder.
To rebuild the dependencies, run:
sh ./build-libraries.shThe script will rebuild all C dependencies for all platforms and architectures, create XCFrameworks from them, and move them to Libraries folder.
fontconfig-2.15.0freetype-2.13.2fribidi-1.0.14harfbuzz-8.5.0libpng-1.6.43libass-0.17.3
This library is released under the MIT license. See LICENSE for details.