diff --git a/src/Essentials/src/FilePicker/FilePicker.ios.cs b/src/Essentials/src/FilePicker/FilePicker.ios.cs index c27803341e12..f35d8623edb6 100644 --- a/src/Essentials/src/FilePicker/FilePicker.ios.cs +++ b/src/Essentials/src/FilePicker/FilePicker.ios.cs @@ -89,31 +89,36 @@ public partial class FilePickerFileType static FilePickerFileType PlatformImageFileType() => new FilePickerFileType(new Dictionary> { - { DevicePlatform.iOS, new[] { (string)UTType.Image } } + { DevicePlatform.iOS, new[] { (string)UTType.Image } }, + { DevicePlatform.MacCatalyst, new[] { (string)UTType.Image } } }); static FilePickerFileType PlatformPngFileType() => new FilePickerFileType(new Dictionary> { - { DevicePlatform.iOS, new[] { (string)UTType.PNG } } + { DevicePlatform.iOS, new[] { (string)UTType.PNG } }, + { DevicePlatform.MacCatalyst, new[] { (string)UTType.PNG } } }); static FilePickerFileType PlatformJpegFileType() => new FilePickerFileType(new Dictionary> { - { DevicePlatform.iOS, new[] { (string)UTType.JPEG } } + { DevicePlatform.iOS, new[] { (string)UTType.JPEG } }, + { DevicePlatform.MacCatalyst, new[] { (string)UTType.JPEG } } }); static FilePickerFileType PlatformVideoFileType() => new FilePickerFileType(new Dictionary> { - { DevicePlatform.iOS, new string[] { UTType.MPEG4, UTType.Video, UTType.AVIMovie, UTType.AppleProtectedMPEG4Video, "mp4", "m4v", "mpg", "mpeg", "mp2", "mov", "avi", "mkv", "flv", "gifv", "qt" } } + { DevicePlatform.iOS, new string[] { UTType.MPEG4, UTType.Video, UTType.AVIMovie, UTType.AppleProtectedMPEG4Video, "mp4", "m4v", "mpg", "mpeg", "mp2", "mov", "avi", "mkv", "flv", "gifv", "qt" } }, + { DevicePlatform.MacCatalyst, new string[] { UTType.MPEG4, UTType.Video, UTType.AVIMovie, UTType.AppleProtectedMPEG4Video, "mp4", "m4v", "mpg", "mpeg", "mp2", "mov", "avi", "mkv", "flv", "gifv", "qt" } } }); static FilePickerFileType PlatformPdfFileType() => new FilePickerFileType(new Dictionary> { - { DevicePlatform.iOS, new[] { (string)UTType.PDF } } + { DevicePlatform.iOS, new[] { (string)UTType.PDF } }, + { DevicePlatform.MacCatalyst, new[] { (string)UTType.PDF } } }); #pragma warning restore CA1422 // Validate platform compatibility #pragma warning restore CA1416