swift-libass

1.1.0

Swift wrapper for "libass"
mihai8804858/swift-libass

What's New

1.1.0

2024-05-29T21:07:54Z
  • Updated prebuilt dependencies

    • fontconfig - 2.15.0
    • freetype - 2.13.2
    • fribidi - 1.0.14
    • harfbuzz - 8.5.0
    • libpng - 1.6.43
    • libass - 0.17.2

Full Changelog: 1.0.0...1.1.0

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.

Prebuilt Versions

  • fontconfig - 2.15.0
  • freetype - 2.13.2
  • fribidi - 1.0.14
  • harfbuzz - 8.5.0
  • libpng - 1.6.43
  • libass - 0.17.2

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: Wed Oct 23 2024 03:31:57 GMT-0900 (Hawaii-Aleutian Daylight Time)