Created
January 9, 2019 08:48
-
-
Save jimmythai/7da6a1d252e2f7817cf87bfab6ab2003 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool { | |
| let isDisabledAction = action == #selector(copy(_:)) || action == #selector(cut(_:)) || action == #selector(paste(_:)) | |
| return isDisabledAction ? false : super.canPerformAction(action, withSender: sender) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment