From 5ebe5fe45c55885e6fa1b97a55f14f276dc0805e Mon Sep 17 00:00:00 2001 From: Hesham Salman Date: Tue, 24 Feb 2026 10:08:25 -0500 Subject: [PATCH] fix: adopt plural context menu delegate in example app The chat example was still using the singular contextMenuConfigurationForItemAt delegate method deprecated in iOS 16. Migrate to the plural contextMenuConfigurationForItemsAt variant. Entire-Checkpoint: 6f8a4f3a33c2 --- Example/Sources/ListKitChatExampleViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Example/Sources/ListKitChatExampleViewController.swift b/Example/Sources/ListKitChatExampleViewController.swift index 89a31073..17bacfe3 100644 --- a/Example/Sources/ListKitChatExampleViewController.swift +++ b/Example/Sources/ListKitChatExampleViewController.swift @@ -38,10 +38,11 @@ final class ListKitChatExampleViewController: UIViewController, UICollectionView func collectionView( _: UICollectionView, - contextMenuConfigurationForItemAt indexPath: IndexPath, + contextMenuConfigurationForItemsAt indexPaths: [IndexPath], point _: CGPoint ) -> UIContextMenuConfiguration? { guard + let indexPath = indexPaths.first, let ref = dataSource.itemIdentifier(for: indexPath), let model = store.model(for: ref.id) else { return nil }