Post

Replies

Boosts

Views

Activity

Reply to how to disable copy/paste in textfield ?
In swift 5 the code looks like this:     open override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {         if action == #selector(UIResponderStandardEditActions.paste(_:)) {             return false         }         return super.canPerformAction(action, withSender: sender)     } You still have to use a custom UITextField and set your UITextField component to use a custom class (as mentioned before).    
Jul ’20