A starter template for Swift Package Manager projects.
[ A brief synopsis of this library ].
Select File
-> Swift Packages
-> Add Package Dependency
and enter https://github.com/CypherPoet/MyLibraryName
.
You can add MyPackageName
as a package dependency in your Package.swift
file:
let package = Package(
//...
dependencies: [
.package(
url: "https://github.com/CypherPoet/MyLibraryName",
exact: "0.0.1"
),
],
//...
)
From there, refer to the MyLibraryName
“product” delivered by the MyPackageName
“package” inside of any of your project’s target dependencies:
targets: [
.target(
name: "YourLibrary",
dependencies: [
.product(
name: "MyLibraryName",
package: "MyPackageName"
),
],
...
),
...
]
Then simply import MyLibraryName
wherever you’d like to use it.
Documentation is built with DocC (see Apple’s guidance for more details about creating DocC content).
To build and preview the documentation output, follow the instructions for the here for the Swift-DocC Plugin
.
If you’re using VSCode, there’s also a task configuration that will handle this directly from the editor 💪
MyPackageName
is available under the MIT license. See the LICENSE file for more info.
MyLibraryName
to the library’s product name.MyLibraryName
to the library’s product name.MyPackageName
to the library’s Swift package name.Package.swift
and in this README’s badges as appropriate.[ A brief synopsis of this library ]
with the library’s short description.