From 2d690219a6db3ffc8b1d5b945f1c4b7de6a99be7 Mon Sep 17 00:00:00 2001 From: Bhavanesh N Date: Sat, 28 Jun 2025 01:49:54 +0530 Subject: [PATCH] [iOS] Assign PresentationController.Delegate to handle swipe-to-dismiss fallback --- src/Essentials/src/FilePicker/FilePicker.ios.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Essentials/src/FilePicker/FilePicker.ios.cs b/src/Essentials/src/FilePicker/FilePicker.ios.cs index 5ee2cc558d09..de62bc6d16e3 100644 --- a/src/Essentials/src/FilePicker/FilePicker.ios.cs +++ b/src/Essentials/src/FilePicker/FilePicker.ios.cs @@ -63,6 +63,7 @@ async Task> PlatformPickAsync(PickOptions options, bool { PickHandler = urls => GetFileResults(urls, tcs) }; + } #if !MACCATALYST if (documentPicker.PresentationController != null && !(OperatingSystem.IsIOSVersionAtLeast(14, 0) && NSProcessInfo.ProcessInfo.IsiOSApplicationOnMac)) @@ -71,7 +72,6 @@ async Task> PlatformPickAsync(PickOptions options, bool new UIPresentationControllerDelegate(() => GetFileResults(null, tcs)); } #endif - } var parentController = WindowStateManager.Default.GetCurrentUIViewController(true); parentController.PresentViewController(documentPicker, true, null);