To use this release of libpng in your own swift project, add libpng as a package dependency in your project's Package.swift
file.
// swift-tools-version: 5.8
dependencies: [
.package(url: "https://github.com/the-swift-collective/libpng.git", from: "1.6.45"),
]
Then, for any target you'd like, add the libpng product as a target dependency.
targets: [
.target(
name: "MyLibrary",
dependencies: [
/* add the libpng product as a library dependency. */
.product(name: "LibPNG", package: "libpng"),
]
),
]