Skip to content

Commit aebca98

Browse files
bhavanesh2001PureWeen
authored andcommitted
[iOS] Assign PresentationController.Delegate to handle swipe-to-dismiss fallback (#30289)
1 parent 650b245 commit aebca98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Essentials/src/FilePicker/FilePicker.ios.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ async Task<IEnumerable<FileResult>> PlatformPickAsync(PickOptions options, bool
6363
{
6464
PickHandler = urls => GetFileResults(urls, tcs)
6565
};
66+
}
6667

6768
#if !MACCATALYST
6869
if (documentPicker.PresentationController != null && !(OperatingSystem.IsIOSVersionAtLeast(14, 0) && NSProcessInfo.ProcessInfo.IsiOSApplicationOnMac))
@@ -71,7 +72,6 @@ async Task<IEnumerable<FileResult>> PlatformPickAsync(PickOptions options, bool
7172
new UIPresentationControllerDelegate(() => GetFileResults(null, tcs));
7273
}
7374
#endif
74-
}
7575

7676
var parentController = WindowStateManager.Default.GetCurrentUIViewController(true);
7777
parentController.PresentViewController(documentPicker, true, null);

0 commit comments

Comments
 (0)