jessesquires / ReactiveCollectionsKit

Data-driven, declarative, reactive, diffable collections (and lists!) for iOS. A modern, fast, and flexible library for UICollectionView done right.
https://jessesquires.github.io/ReactiveCollectionsKit/
MIT License
42 stars 1 forks source link

[Delegate] implement additional context menu APIs #1

Open jessesquires opened 4 years ago

jessesquires commented 4 years ago

Docs: https://developer.apple.com/documentation/uikit/uicollectionviewdelegate#3580853

Already implemented

func collectionView(UICollectionView, contextMenuConfigurationForItemAt: IndexPath, point: CGPoint) -> UIContextMenuConfiguration?

NOT implemented

func collectionView(UICollectionView, previewForDismissingContextMenuWithConfiguration: UIContextMenuConfiguration) -> UITargetedPreview?
func collectionView(UICollectionView, previewForHighlightingContextMenuWithConfiguration: UIContextMenuConfiguration) -> UITargetedPreview?

func collectionView(UICollectionView,  willDisplayContextMenu configuration: UIContextMenuConfiguration,  animator: UIContextMenuInteractionAnimating?)
func collectionView(UICollectionView, willEndContextMenuInteraction configuration: UIContextMenuConfiguration,  animator: UIContextMenuInteractionAnimating?)

func collectionView(UICollectionView, willPerformPreviewActionForMenuWith: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating)
jessesquires commented 4 years ago

https://useyourloaf.com/blog/adding-context-menus-in-ios-13/

jessesquires commented 2 years ago

currently, only implementing:

public func collectionView(
_ collectionView: UICollectionView, 
contextMenuConfigurationForItemAt 
indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration?