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
FileType
instance based on a file extension stringext
Declaration
Swift
public init(from ext: String)
Parameters
ext
A string representing the file extension