filenameExtension(_:isValidForType:)
Returns whether the specified filename extension is appropriate for the Uniform Type Identifier (UTI).
Declaration
func filenameExtension(_ filenameExtension: String, isValidForType typeName: String) -> BoolParameters
- filenameExtension:
A string containing the filename extension.
- typeName:
A string containing the UTI.
Return Value
true if fileNameExtension is a valid extension for typeName; otherwise, false.
Discussion
You can safely call this method from any thread of your app.