swift-libass

1.0.0

Swift wrapper for "libass"
mihai8804858/swift-libass

What's New

1.0.0

2024-04-07T15:37:26Z
  • Initial Release

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.

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu May 02 2024 19:20:37 GMT-0900 (Hawaii-Aleutian Daylight Time)