Using this code it will show me : copy, select, select all and paste.
But I want select and select all first when user click on select then and then copy will display and when click on copy then paste will display.
class CustomTextField: UITextView
{
override public func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool
{
if action == #selector(select(_:)) || action == #selector(copy(_:)) || action == #selector(selectAll(_:)) || action == #selector(paste(_:))
{
return true
}
return false
}
}