Static Methodswift-package-manager 6.0.1PackageDescription
embedInCode(_:)
Applies the embed rule to a resource at the given path.
Resource.swift:105- SwiftPM
- 5.9+
static func embedInCode(_ path: String) -> Resource
Parameters
- path
The path for a resource.
Returns
A Resource
instance.
You can use the embed rule to embed the contents of the resource into the executable code.
Other members in extension
Types
enum Localization
Defines the explicit type of localization for resources.
Type members
static func copy(String
) -> Resource Applies the copy rule to a resource at the given path.
static func process(String, localization: Localization?
) -> Resource Applies a platform-specific rules to the resource at the given path.