Skip to content

BinaryBirds/swift-gd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftGD

A Swift wrapper around the libgd graphics library.

Getting started

⚠️ This repository is a work in progress, things can break until it reaches v1.0.0.

Use at your own risk.

Adding the dependency

To add a dependency on the package, declare it in your Package.swift:

.package(url: "https://github.com/binarybirds/swift-gd", .upToNextMinor(from: "0.1.0")),

and to your application target, add SwiftGD to your dependencies:

.product(name: "SwiftGD", package: "swift-gd")

Example Package.swift file with FeatherDatabase as a dependency:

// swift-tools-version:5.9
import PackageDescription

let package = Package(
    name: "my-application",
    dependencies: [
        .package(url: "https://github.com/binarybirds/swift-gd", .upToNextMinor(from: "0.1.0")),
    ],
    targets: [
        .target(name: "MyApplication", dependencies: [
            .product(name: "SwiftGD", package: "swift-gd")
        ]),
        .testTarget(name: "MyApplicationTests", dependencies: [
            .target(name: "MyApplication"),
        ]),
    ]
)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages