File

public class File

Provide quick access to any file stored in project.

  • Loading file with passed path and extension. If there is no such file in boundle - return nil.

    Declaration

    Swift

    public static func load(fileName: String,
                            fileExtension: String,
                            bundle: Bundle = Bundle.main) -> Any?