FileType
public enum FileType : Int, Codable
Describe the type of content for a file
-
The file type is not video or image
Declaration
Swift
case unknown -
The file correspond to an image file
Declaration
Swift
case image -
The file correspond to a video file
Declaration
Swift
case video
-
Creates a
FileTypeinstance based on a file extension stringextDeclaration
Swift
public init(from ext: String)Parameters
extA string representing the file extension
FileType Enumeration Reference