Skip to content

Instantly share code, notes, and snippets.

@anupamchugh
Last active October 7, 2019 21:25
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/c230523f75acc24383258c86f2f09c0b to your computer and use it in GitHub Desktop.
Save anupamchugh/c230523f75acc24383258c86f2f09c0b to your computer and use it in GitHub Desktop.
class BasicViewController: UIViewController, UIContextMenuInteractionDelegate {
override func viewDidLoad() {
super.viewDidLoad()
let interaction = UIContextMenuInteraction(delegate: self)
view.addInteraction(interaction)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment