Skip to content

Instantly share code, notes, and snippets.

@anupamchugh
Created October 7, 2019 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anupamchugh/8926c68cb15ccf511401413cc54b7861 to your computer and use it in GitHub Desktop.
Save anupamchugh/8926c68cb15ccf511401413cc54b7861 to your computer and use it in GitHub Desktop.
//Provides a Context Menu for the give menu when the interaction starts
func contextMenuInteraction(_ interaction: UIContextMenuInteraction,
configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration?
//Optional function. Gets triggered when the focused view is clicked.
func contextMenuInteraction(_ interaction: UIContextMenuInteraction,
willCommitWithAnimator animator: UIContextMenuInteractionCommitAnimating)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment