Xcode allows resources to be defined as Preview Content so they are not part of the application. In the project.pbxproj file, they are DEVELOPMENT_ASSET_PATHS. I cannot find documentation about how to set this up for Package.swift files.
Expected behavior
I expect documentation about how to do this for SwiftUI Previews in Packages
Actual behavior
I cannot find documentation about this.
Steps to reproduce
Try to learn how to have Preview Content in Package files.
Nothing can be found.
Swift Package Manager version/commit hash
swift 5.7
Swift & OS version (output of swift --version && uname -a)
neu:MissingArt bolsinga$ swift --version && uname -a
swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
Target: arm64-apple-macosx13.0
Darwin neu.local 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64
Description
Xcode allows resources to be defined as Preview Content so they are not part of the application. In the project.pbxproj file, they are
DEVELOPMENT_ASSET_PATHS
. I cannot find documentation about how to set this up for Package.swift files.Expected behavior
I expect documentation about how to do this for SwiftUI Previews in Packages
Actual behavior
I cannot find documentation about this.
Steps to reproduce
Try to learn how to have Preview Content in Package files. Nothing can be found.
Swift Package Manager version/commit hash
swift 5.7
Swift & OS version (output of
swift --version && uname -a
)neu:MissingArt bolsinga$ swift --version && uname -a swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) Target: arm64-apple-macosx13.0 Darwin neu.local 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64