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

    Type members