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
140 stars 6 forks source link

[Delegate] implement additional context menu APIs #1

Open jessesquires opened 5 years ago

jessesquires commented 5 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 3 years ago

currently, only implementing:

public func collectionView(
_ collectionView: UICollectionView, 
contextMenuConfigurationForItemAt 
indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration?
ruddfawcett commented 1 month ago

@jessesquires saw this from https://github.com/jessesquires/ReactiveCollectionsKit/discussions/129, are you happy for me to take this? Assuming we can forward on CollectionViewModel?

jessesquires commented 1 month ago

@ruddfawcett sure! 😄

Just be aware that I'll be working on some bigger changes next week: https://github.com/jessesquires/ReactiveCollectionsKit/discussions/129#discussioncomment-10826010