Bundle
public extension Bundle
-
Returns the path for the resource identified by the specified name and file extension.
Declaration
Swift
func path(forResource name: String?, withExtension extension: String?) -> Path?Parameters
nameThe name of the resource file
extensionThe filename extension of the file to locate.
Return Value
The path for the resource file, or
nilif the file could not be located.
View on GitHub
Bundle Extension Reference