Skip to content

Fix context menus not appearing on Mac Catalyst#68

Merged
Iron-Ham merged 1 commit into
mainfrom
Iron-Ham/f02b4e69-fix-httpsgithubcomiron-hamlist
Feb 24, 2026
Merged

Fix context menus not appearing on Mac Catalyst#68
Iron-Ham merged 1 commit into
mainfrom
Iron-Ham/f02b4e69-fix-httpsgithubcomiron-hamlist

Conversation

@Iron-Ham
Copy link
Copy Markdown
Owner

Summary

  • Replace deprecated contextMenuConfigurationForItemAt (singular, deprecated iOS 16) with contextMenuConfigurationForItemsAt (plural) in SimpleList, GroupedList, and OutlineList
  • Update ListConfigurationBridge.handleContextMenu to accept [IndexPath], returning nil for empty arrays (background taps)

The singular delegate method is not invoked on Mac Catalyst (iOS 26), causing right-click context menus to silently fail. Since the minimum deployment target is iOS 17, the plural API is always available.

Fixes #67

Test plan

  • Right-click an item on Mac Catalyst — context menu should appear
  • Long-press an item on iPad/iPhone — context menu should still appear
  • Right-click the collection view background (no item) — no context menu should appear
  • Verify contextMenuProvider closure receives the correct item

Replace deprecated `contextMenuConfigurationForItemAt` (singular) with
`contextMenuConfigurationForItemsAt` (plural) in SimpleList, GroupedList,
and OutlineList. The singular form is not invoked on Mac Catalyst (iOS 26),
causing context menus to silently fail.

Fixes #67
@Iron-Ham Iron-Ham merged commit 7c29b65 into main Feb 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Context menus not appearing on Mac Catalyst — singular delegate deprecated since iOS 16

1 participant