FreeType as a Swift Package available for all Apple platforms in Swift and C

Hello ladies and gentlemen!
I created a Swift Package that wraps the FreeType library as an Xcode framework - compatible with iOS, macOS, visionOS, tvOS and even watchOS and easy to install via SPM. You can use it directly in both Swift and C. Hope it's useful! Repo:

Can't add it to the Swift Package Registry for some bizarre reason. It says "The version specifier ' 5.9' in '/usr/src/package/Package.swift' is not valid". I can't lower the Swift version because the .visionOS target is available starting from Swift tools 5.9.

Looking forward for adding support for other OS like Windows, Android and Linux when it will be possible!

4 Likes

Swift Package Registry AFAIK is not actively maintained; You should try submitting to Swift Package Index which is properly funded and offers DocC documentation hosting :winking_face_with_tongue:

5 Likes

Oh, now I see, thanks! I've submitted the package ;)