Safely extract environment values.
- Add
.package(url: "https://github.com/fizker/swift-environment-variables.git", from: "1.2.0")to the list of dependencies in your Package.swift file. - Add
.product(name: "EnvironmentVariables", package: "swift-environment-variables")to the dependencies of the targets that need to use the models. - Add
import EnvironmentVariablesin the file. - Then, Xcode can build the DocC documentation, which includes detailed examples for how to use the project.