From 23c9e78659636927727bea97ae2b505efc1618ca Mon Sep 17 00:00:00 2001 From: omertestrail <127186214+omertestrail@users.noreply.github.com> Date: Wed, 24 Apr 2024 05:04:20 +0300 Subject: [PATCH] bugfix/FS-11531 - registeredTypeIdentifiers updated as first prevent to upload .low files (#79) --- .../UI/Internal/Controllers/ImagePickerUploadController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Filestack/UI/Internal/Controllers/ImagePickerUploadController.swift b/Sources/Filestack/UI/Internal/Controllers/ImagePickerUploadController.swift index d99210d..faa76b8 100644 --- a/Sources/Filestack/UI/Internal/Controllers/ImagePickerUploadController.swift +++ b/Sources/Filestack/UI/Internal/Controllers/ImagePickerUploadController.swift @@ -173,13 +173,13 @@ private extension ImagePickerUploadController { if registeredTypeIdentifiers.contains(AVFileType.jpg.rawValue) { typeIdentifier = AVFileType.jpg.rawValue } else { - typeIdentifier = registeredTypeIdentifiers.last + typeIdentifier = registeredTypeIdentifiers.first } case .current: if registeredTypeIdentifiers.contains(AVFileType.heic.rawValue) { typeIdentifier = AVFileType.heic.rawValue } else { - typeIdentifier = registeredTypeIdentifiers.last + typeIdentifier = registeredTypeIdentifiers.first } }