I want to resize the default clear button of `UITextField`. After I googled a lot, I came to know there is no way to modify it. 

So I decided to go with Custom option ie, by adding `UIButton` to text field.I found some code from S.O, but nothing works for me. These are the links which I referred.

* [Custom UITextField clear button](https://stackoverflow.com/questions/9239328/custom-uitextfield-clear-button)
* [Custom clear button for UITextField](https://stackoverflow.com/questions/13713444/custom-clear-button-for-uitextfield)
* [Custom clear button in UISearchBar text field](https://stackoverflow.com/questions/13862050/custom-clear-button-in-uisearchbar-text-field)

So please suggest some solution which behaves exactly as default clear button of `UITextField`

Any help will be appreciated.

Thanks in advance.