Bundle
extension Bundle
-
Get the filePath for a resource in a bundle.
Declaration
Swift
public func resourceFilePath(in bundle: String, for filename: String) -> StringParameters
bundleName of the bundle packaged with this App/Framework Bundle
filenameThe filename of the resource in the bundle
Return Value
Absolute filePath to the Resources in the bundle
-
Get the filePath for a test resource in a bundle.
Declaration
Swift
public func testResourceFilePath(in bundle: String, for filename: String) -> StringParameters
bundleName of the bundle packaged with this Test Bundle
filenameThe filename of the resource in the bundle
Return Value
Absolute filePath to the Resources in the bundle