https://github.com/binarybirds/swift-gd
https://github.com/binarybirds/swift-gd
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/binarybirds/swift-gd
- Owner: BinaryBirds
- License: mit
- Created: 2024-06-01T14:50:34.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-01T16:37:29.000Z (about 2 years ago)
- Last Synced: 2025-03-28T11:33:52.896Z (about 1 year ago)
- Language: Swift
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SwiftGD
A Swift wrapper around the [libgd](https://github.com/libgd/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`:
```swift
.package(url: "https://github.com/binarybirds/swift-gd", .upToNextMinor(from: "0.1.0")),
```
and to your application target, add `SwiftGD` to your dependencies:
```swift
.product(name: "SwiftGD", package: "swift-gd")
```
Example `Package.swift` file with `FeatherDatabase` as a dependency:
```swift
// 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"),
]),
]
)
```