Commit e184a5f
User
Fix: allow dismissing photo picker on macOS when Photos library is empty (#507)
On Mac Catalyst, PHPickerViewController defaults to isModalInPresentation = true,
which prevents dismissal via Escape or clicking outside the sheet. When the Photos
library is empty, the picker shows no cancel button, trapping the user.
Set isModalInPresentation = false on Mac Catalyst so the sheet can always be
dismissed interactively.
Also fix swapped extension conformance labels (PHPickerViewControllerDelegate
and UIAdaptivePresentationControllerDelegate were on the wrong extensions).1 parent 4dc000d commit e184a5f
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
47 | | - | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
101 | | - | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| |||
0 commit comments