Created
September 6, 2019 23:31
-
-
Save dagronf/b847ef7cc7fa14d8dd093604ead916c5 to your computer and use it in GitHub Desktop.
UITextView add other items to selection popover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let menuController = UIMenuController.shared | |
let item1 = UIMenuItem(title: "Item 1", action: #selector(performItem1)) | |
let item2 = UIMenuItem(title: "Item 2", action: #selector(performItem2)) | |
menuController.menuItems = [item1, item2] | |
menuController.setMenuVisible(true, animated: true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment