Skip to content

mihai8804858/swift-libass

Repository files navigation

SwiftLibass

Swift wrapper for libass.

CI

Installation

You can add swift-libass to an Xcode project by adding it to your project as a package.

https://github.com/mihai8804858/swift-libass

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"),

Quick Start

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)

Build Dependencies

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.

License

This library is released under the MIT license. See LICENSE for details.

About

Swift wrapper for "libass"

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages