I’m having trouble removing this tick when text is selected, I’ve tried this:
class CustomUITextField: UITextField {
open override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
return false
}
}
which removes stuff like copy, paste etc, but doesn’t seem to remove this new iOS 16 feature. Thankful for any help 🙂
2
Answers
you can try:
Add the following code to your custom subclass: