Skip to content

Instantly share code, notes, and snippets.

@yusufozgul
Last active March 18, 2020 13:09
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 yusufozgul/dcda4cf2173e79801eef4c152f26d389 to your computer and use it in GitHub Desktop.
Save yusufozgul/dcda4cf2173e79801eef4c152f26d389 to your computer and use it in GitHub Desktop.
willPerformPreviewActionForMenuWith.swift
func tableView(_ tableView: UITableView, willPerformPreviewActionForMenuWith configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating) {
guard let destinationViewController = animator.previewViewController else { return }
animator.addAnimations { self.present(destinationViewController, animated: true) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment