Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 962 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 962 Bytes

Swift Scoped File Path

A Swift package introducing separate AbsoluteFilePath and RelativeFilePath based on FilePath from Swift System.

Using Swift Scoped File Path in your project

Add swift-scoped-file-path as a dependency to your package:

let package = Package(
    // ...
    dependencies: [
        .package(url: "https://github.com/Formkunft/swift-scoped-file-path.git", .upToNextMajor(from: "0.2.0")),
    ],
    targets: [
        .target(
            // ...
            dependencies: [
                .product(name: "ScopedFilePath", package: "swift-scoped-file-path"),
            ]),
    ]
)

Then, import ScopedFilePath in your code:

import ScopedFilePath

// ...