-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Delegate] implement additional context menu APIs #1
Comments
currently, only implementing: public func collectionView(
_ collectionView: UICollectionView,
contextMenuConfigurationForItemAt
indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? |
delete works, favorite does not (yet) #1
needed to implement a proper `==`, the default was comparing the full view model, which is not what we want #1
@jessesquires saw this from #129, are you happy for me to take this? Assuming we can forward on |
@ruddfawcett sure! 😄 Just be aware that I'll be working on some bigger changes next week: #129 (comment) |
These three functions do not have an // iOS 13.2+
func collectionView(_ collectionView: UICollectionView, willDisplayContextMenu configuration: UIContextMenuConfiguration, animator: (any UIContextMenuInteractionAnimating)?)
// iOS 13.2+
func collectionView(_ collectionView: UICollectionView, willEndContextMenuInteraction configuration: UIContextMenuConfiguration, animator: (any UIContextMenuInteractionAnimating)?)
// iOS 13.0+
func collectionView(_ collectionView: UICollectionView, willPerformPreviewActionForMenuWith configuration: UIContextMenuConfiguration, animator: any UIContextMenuInteractionCommitAnimating) This function uses the // new iOS 16.0+
func collectionView(_ collectionView: UICollectionView, contextMenuConfigurationForItemsAt indexPaths: [IndexPath], point: CGPoint) -> UIContextMenuConfiguration?
// old iOS 13.0-16.0
func collectionView(_ collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? These two functions did not have an // new iOS 16.0+
func collectionView(_ collectionView: UICollectionView, contextMenuConfiguration configuration: UIContextMenuConfiguration, highlightPreviewForItemAt indexPath: IndexPath) -> UITargetedPreview?
// old iOS 13.0-16.0
func collectionView(_ collectionView: UICollectionView, previewForDismissingContextMenuWithConfiguration configuration: UIContextMenuConfiguration) -> UITargetedPreview?
// new iOS 16.0+
func collectionView(_ collectionView: UICollectionView, contextMenuConfiguration configuration: UIContextMenuConfiguration, dismissalPreviewForItemAt indexPath: IndexPath) -> UITargetedPreview?
// old iOS 13.0-16.0
func collectionView(_ collectionView: UICollectionView, previewForHighlightingContextMenuWithConfiguration configuration: UIContextMenuConfiguration) -> UITargetedPreview? |
Docs: https://developer.apple.com/documentation/uikit/uicollectionviewdelegate#3580853
Already implemented
NOT implemented
The text was updated successfully, but these errors were encountered: