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 XCFramewroks in Libraries
folder.
To rebuild the dependencies, run:
sh ./build-libraries.sh
The script will rebuild all C dependencies for all platforms and architectures, create XCFrameworks from them, and move them to Libraries
folder.
fontconfig
-2.15.0
freetype
-2.13.2
fribidi
-1.0.14
harfbuzz
-8.5.0
libpng
-1.6.43
libass
-0.17.2
This library is released under the MIT license. See LICENSE for details.