Is there a function or class in iOS that allows me to distinguish a file's type after I've put it into a Data object, so that my code can decide what to do with the file depending on whether it is a video, an image, or an audio file? I am using Swift.
How to get file type in ios of a file that has been stored in a Data object?
Add a Comment