swiftlang / swift-package-manager

The Package Manager for the Swift Programming Language
Apache License 2.0
9.72k stars 1.34k forks source link

Docs missing for specifying resources are for SwiftUI Preview Content only #6168

Open bolsinga opened 1 year ago

bolsinga commented 1 year ago

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

neonichu commented 1 year ago

Packages do not support specifying development assets.

bolsinga commented 1 year ago

OK; Is there a feature request covering it yet? Thank you.