A template repository for Swift libraries.
- <PLATFORM_VERSION>
- <SWIFT_VERSION>
To use the <LIBRARY_NAME>
library in a SwiftPM project, add the following line to the dependencies in your Package.swift
file:
.package(url: "https://github.com/jrsaruo/<LIBRARY_NAME>", from: "1.0.0"),
and add <LIBRARY_NAME>
as a dependency for your target:
.target(name: "<target>", dependencies: [
.product(name: "<LIBRARY_NAME>", package: "<PACKAGE_NAME>"),
// other dependencies
]),
Finally, add import <LIBRARY_NAME>
in your source code.