Photo
フレームワークを使用する。
import Photos
let photo = PHAsset.fetchAssets(withALAssetURLs: [imageURL], options: nil).firstObject
PHImageManager.default().requestImageData(for: photo!, options: nil){ data,string,orientation,hash in
// mimetype 取得
let mimeType: String = UTTypeCopyPreferredTagWithClass(string as! CFString, kUTTagClassMIMEType)!.takeRetainedValue() as String
}